cluster: Fix typo in comment (#1668)

Signed-off-by: JoeWrightss <zhoulin.xie@daocloud.io>
This commit is contained in:
JoeWrightss 2018-12-16 21:03:55 +08:00 committed by Max Inden
parent cd4a524848
commit 9ccbeb585b
1 changed files with 2 additions and 2 deletions

View File

@ -22,13 +22,13 @@ import (
type getPrivateIPFunc func() (string, error)
// This is overriden in unit tests to mock the sockaddr.GetPrivateIP function.
// This is overridden in unit tests to mock the sockaddr.GetPrivateIP function.
var getPrivateAddress getPrivateIPFunc = sockaddr.GetPrivateIP
// calculateAdvertiseAddress attempts to clone logic from deep within memberlist
// (NetTransport.FinalAdvertiseAddr) in order to surface its conclusions to the
// application, so we can provide more actionable error messages if the user has
// inadvertantly misconfigured their cluster.
// inadvertently misconfigured their cluster.
//
// https://github.com/hashicorp/memberlist/blob/022f081/net_transport.go#L126
func calculateAdvertiseAddress(bindAddr, advertiseAddr string) (net.IP, error) {