Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix false fatal err while reading peers in config #19

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

masterSplinter01
Copy link
Contributor

Earlier we didn't differ is variable empty or just not set, that's why when we met empty address we just finished reading of the list of peers and printed "skip, empty address" anyway:

if address == "" {
	a.log.Warn("skip, empty address")
	break
}

Changes in the last commit added check if peers.i.address is empty and if true, raise fatal. It led to false error when the list of peers is over.

Check is peers.i is set to differ when list of peers ended
or empty address is set in config.

Signed-off-by: Kira <[email protected]>
@roman-khimov roman-khimov merged commit e8f759c into nspcc-dev:master Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants