diff options
Diffstat (limited to 'weed/command/master_follower.go')
| -rw-r--r-- | weed/command/master_follower.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/command/master_follower.go b/weed/command/master_follower.go index 5e5244c05..c4f0cfc3c 100644 --- a/weed/command/master_follower.go +++ b/weed/command/master_follower.go @@ -120,7 +120,7 @@ func startMasterFollower(masterOptions MasterOptions) { ms := weed_server.NewMasterServer(r, option, masters) listeningAddress := util.JoinHostPort(*masterOptions.ipBind, *masterOptions.port) glog.V(0).Infof("Start Seaweed Master %s at %s", util.Version(), listeningAddress) - masterListener, masterLocalListner, e := util.NewIpAndLocalListeners(*masterOptions.ipBind, *masterOptions.port, 0) + masterListener, masterLocalListener, e := util.NewIpAndLocalListeners(*masterOptions.ipBind, *masterOptions.port, 0) if e != nil { glog.Fatalf("Master startup error: %v", e) } @@ -144,8 +144,8 @@ func startMasterFollower(masterOptions MasterOptions) { // start http server httpS := &http.Server{Handler: r} - if masterLocalListner != nil { - go httpS.Serve(masterLocalListner) + if masterLocalListener != nil { + go httpS.Serve(masterLocalListener) } go httpS.Serve(masterListener) |
