mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-22 18:43:35 +08:00
able to read chan and write chan
This commit is contained in:
@@ -64,7 +64,7 @@ type FilerServer struct {
|
||||
listenersLock sync.Mutex
|
||||
listenersCond *sync.Cond
|
||||
|
||||
brokers map[string]bool
|
||||
brokers map[string]map[string]bool
|
||||
brokersLock sync.Mutex
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption)
|
||||
fs = &FilerServer{
|
||||
option: option,
|
||||
grpcDialOption: security.LoadClientTLS(util.GetViper(), "grpc.filer"),
|
||||
brokers: make(map[string]bool),
|
||||
brokers: make(map[string]map[string]bool),
|
||||
}
|
||||
fs.listenersCond = sync.NewCond(&fs.listenersLock)
|
||||
|
||||
|
Reference in New Issue
Block a user