Browse Source

fix compilation

pull/1383/head
Chris Lu 5 years ago
parent
commit
3c269da37f
  1. 2
      weed/server/filer_server.go

2
weed/server/filer_server.go

@ -94,7 +94,7 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption)
glog.Fatal("filers using separate leveldb stores should not configure peers!") glog.Fatal("filers using separate leveldb stores should not configure peers!")
} }
if len(option.Filers) == 0 { if len(option.Filers) == 0 {
option.Filers = append(option.Filers, fmt.Sprintf("%s:%d", option.Host, option.Port)
option.Filers = append(option.Filers, fmt.Sprintf("%s:%d", option.Host, option.Port))
} }
fs.metaAggregator = filer2.NewMetaAggregator(option.Filers, fs.grpcDialOption) fs.metaAggregator = filer2.NewMetaAggregator(option.Filers, fs.grpcDialOption)

Loading…
Cancel
Save