aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/filer.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-03-26 13:33:17 -0700
committerchrislu <chris.lu@gmail.com>2022-03-26 13:33:17 -0700
commit21e08986317995a89274b5fc7dad80a42006bc16 (patch)
treeccc6f6a1c00282011697e7a7f004cfd78ec1362f /weed/filer/filer.go
parent4ba7127ab1bf8fa045d623d0c6293a083f209ad7 (diff)
downloadseaweedfs-21e08986317995a89274b5fc7dad80a42006bc16.tar.xz
seaweedfs-21e08986317995a89274b5fc7dad80a42006bc16.zip
refactor: change masters from a slice to a map
Diffstat (limited to 'weed/filer/filer.go')
-rw-r--r--weed/filer/filer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer/filer.go b/weed/filer/filer.go
index 7b6f1342c..836a0e447 100644
--- a/weed/filer/filer.go
+++ b/weed/filer/filer.go
@@ -49,7 +49,7 @@ type Filer struct {
UniqueFileId uint32
}
-func NewFiler(masters []pb.ServerAddress, grpcDialOption grpc.DialOption,
+func NewFiler(masters map[string]pb.ServerAddress, grpcDialOption grpc.DialOption,
filerHost pb.ServerAddress, collection string, replication string, dataCenter string, notifyFn func()) *Filer {
f := &Filer{
MasterClient: wdclient.NewMasterClient(grpcDialOption, cluster.FilerType, filerHost, dataCenter, masters),