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:
Daniel Nephin 2020-08-13 11:28:26 -04:00
parent 629c34085d
commit 055e7e8ca3
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}