aboutsummaryrefslogtreecommitdiff
path: root/weed/command/master.go
diff options
context:
space:
mode:
authorRyan Russell <ryanrussell@users.noreply.github.com>2022-09-14 13:59:55 -0500
committerGitHub <noreply@github.com>2022-09-14 11:59:55 -0700
commit8efe1db01aab21268bf35d685ce643cb7ae5dde5 (patch)
tree9a99547c4c897d8586a8568b65b10ad23d234e61 /weed/command/master.go
parenta8d7615eecea9ef88e33fd63ecc7bb93edfdc9dc (diff)
downloadseaweedfs-8efe1db01aab21268bf35d685ce643cb7ae5dde5.tar.xz
seaweedfs-8efe1db01aab21268bf35d685ce643cb7ae5dde5.zip
refactor(various): `Listner` -> `Listener` readability improvements (#3672)
* refactor(net_timeout): `listner` -> `listener` Signed-off-by: Ryan Russell <git@ryanrussell.org> * refactor(s3): `s3ApiLocalListner` -> `s3ApiLocalListener` Signed-off-by: Ryan Russell <git@ryanrussell.org> * refactor(filer): `localPublicListner` -> `localPublicListener` Signed-off-by: Ryan Russell <git@ryanrussell.org> * refactor(command): `masterLocalListner` -> `masterLocalListener` Signed-off-by: Ryan Russell <git@ryanrussell.org> * refactor(net_timeout): `ipListner` -> `ipListener` Signed-off-by: Ryan Russell <git@ryanrussell.org> Signed-off-by: Ryan Russell <git@ryanrussell.org>
Diffstat (limited to 'weed/command/master.go')
-rw-r--r--weed/command/master.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/command/master.go b/weed/command/master.go
index 908299c8a..f20b2dc62 100644
--- a/weed/command/master.go
+++ b/weed/command/master.go
@@ -146,7 +146,7 @@ func startMaster(masterOption MasterOptions, masterWhiteList []string) {
ms := weed_server.NewMasterServer(r, masterOption.toMasterOption(masterWhiteList), masterPeers)
listeningAddress := util.JoinHostPort(*masterOption.ipBind, *masterOption.port)
glog.V(0).Infof("Start Seaweed Master %s at %s", util.Version(), listeningAddress)
- masterListener, masterLocalListner, e := util.NewIpAndLocalListeners(*masterOption.ipBind, *masterOption.port, 0)
+ masterListener, masterLocalListener, e := util.NewIpAndLocalListeners(*masterOption.ipBind, *masterOption.port, 0)
if e != nil {
glog.Fatalf("Master startup error: %v", e)
}
@@ -239,8 +239,8 @@ func startMaster(masterOption MasterOptions, masterWhiteList []string) {
}
httpS := &http.Server{Handler: r}
- if masterLocalListner != nil {
- go httpS.Serve(masterLocalListner)
+ if masterLocalListener != nil {
+ go httpS.Serve(masterLocalListener)
}
if useMTLS {