Comment nits

This commit is contained in:
Sean Chittenden 2016-04-08 11:55:20 -07:00
parent d77f9e0583
commit 0c23acb818
3 changed files with 4 additions and 4 deletions

View File

@ -205,7 +205,7 @@ func (c *ServerCommand) Run(args []string) int {
coreConfig.AdvertiseAddr = envAA
}
// Attempt to detect the advertise address possible
// Attempt to detect the advertise address, if possible
var detect physical.AdvertiseDetect
if coreConfig.HAPhysical != nil {
detect, ok = coreConfig.HAPhysical.(physical.AdvertiseDetect)

View File

@ -365,7 +365,7 @@ func parseBackends(result *Config, list *ast.ObjectList) error {
return multierror.Prefix(err, fmt.Sprintf("backend.%s:", key))
}
// Pull out the advertise address since it's commong to all backends
// Pull out the advertise address since it's common to all backends
var advertiseAddr string
if v, ok := m["advertise_addr"]; ok {
advertiseAddr = v
@ -398,7 +398,7 @@ func parseHABackends(result *Config, list *ast.ObjectList) error {
return multierror.Prefix(err, fmt.Sprintf("ha_backend.%s:", key))
}
// Pull out the advertise address since it's commong to all backends
// Pull out the advertise address since it's common to all backends
var advertiseAddr string
if v, ok := m["advertise_addr"]; ok {
advertiseAddr = v

View File

@ -185,7 +185,7 @@ All backends support the following options:
nodes to when A is the active node and B and C are standby nodes. This may
be the same address across nodes if using a load balancer or service
discovery. Most HA backends will attempt to determine the advertise address
if not provided. This can also be set via the `VAULT_ADVERTISE_ADDR`
if not provided. This can also be overridden via the `VAULT_ADVERTISE_ADDR`
environment variable.
#### Backend Reference: Consul