refactor: change masters from a slice to a map

This commit is contained in:
chrislu committed 2022-03-26 13:33:17 -07:00
1 parent 4ba7127ab1
commit 21e0898631
15 files changed
+36 -21

No files matched your search

+1 -1
View File
@@ -191,7 +191,7 @@ func runServer(cmd *Command, args []string) bool {
// ip address
masterOptions.ip = serverIp
masterOptions.ipBind = serverBindIp
filerOptions.masters = pb.ServerAddresses(*masterOptions.peers).ToAddresses()
filerOptions.masters = pb.ServerAddresses(*masterOptions.peers).ToAddressMap()
filerOptions.ip = serverIp
filerOptions.bindIp = serverBindIp
s3Options.bindIp = serverBindIp