aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-04-01 17:34:42 -0700
committerchrislu <chris.lu@gmail.com>2022-04-01 17:34:42 -0700
commitdaca2d22a56fb1ff6d659fe8dda2c5d3d0c65a15 (patch)
tree5c618e5ba64805789d0a04b3d0c598309881e814 /weed/command
parent4b5c0e3fa9a6e61e1cfa000567773b23fba39918 (diff)
downloadseaweedfs-daca2d22a56fb1ff6d659fe8dda2c5d3d0c65a15.tar.xz
seaweedfs-daca2d22a56fb1ff6d659fe8dda2c5d3d0c65a15.zip
use original server address string as map key
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/master.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/master.go b/weed/command/master.go
index e56ee19fe..3d69f4216 100644
--- a/weed/command/master.go
+++ b/weed/command/master.go
@@ -134,7 +134,7 @@ func startMaster(masterOption MasterOptions, masterWhiteList []string) {
masterPeers := make(map[string]pb.ServerAddress)
for _, peer := range peers {
- masterPeers[peer.String()] = peer
+ masterPeers[string(peer)] = peer
}
r := mux.NewRouter()