aboutsummaryrefslogtreecommitdiff
path: root/weed/command/iam.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/command/iam.go
parent4ba7127ab1bf8fa045d623d0c6293a083f209ad7 (diff)
downloadseaweedfs-21e08986317995a89274b5fc7dad80a42006bc16.tar.xz
seaweedfs-21e08986317995a89274b5fc7dad80a42006bc16.zip
refactor: change masters from a slice to a map
Diffstat (limited to 'weed/command/iam.go')
-rw-r--r--weed/command/iam.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/iam.go b/weed/command/iam.go
index 88b17b1a2..968d23095 100644
--- a/weed/command/iam.go
+++ b/weed/command/iam.go
@@ -67,7 +67,7 @@ func (iamopt *IamOptions) startIamServer() bool {
}
}
- masters := pb.ServerAddresses(*iamopt.masters).ToAddresses()
+ masters := pb.ServerAddresses(*iamopt.masters).ToAddressMap()
router := mux.NewRouter().SkipClean(true)
_, iamApiServer_err := iamapi.NewIamApiServer(router, &iamapi.IamServerOption{
Masters: masters,