mirror of https://github.com/status-im/consul.git
Fix conflict in merged PRs
One PR renamed the var from config->cfg, and another used the old name config, which caused the build to fail on master.
This commit is contained in:
parent
d677706625
commit
8f596f5551
|
@ -510,7 +510,7 @@ func New(options ...AgentOption) (*Agent, error) {
|
|||
|
||||
// Retrieve or generate the node ID before setting up the rest of the
|
||||
// agent, which depends on it.
|
||||
config.NodeID, err = newNodeIDFromConfig(a.config, a.logger)
|
||||
cfg.NodeID, err = newNodeIDFromConfig(a.config, a.logger)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to setup node ID: %w", err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue