good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 4b3eb0ff authored by battlmonstr's avatar battlmonstr Committed by GitHub
Browse files

Observer: fix panic on clean start (#4002) (#4017)

Problem: (nil, nil) from CountPingErrors was not handled.
This happens if the node is not in the db (a bootstrap node),
and was never crawled before.
parent 76c36c2c
No related branches found
No related tags found
No related merge requests found
......@@ -243,6 +243,9 @@ func (crawler *Crawler) Run(ctx context.Context) error {
}
return fmt.Errorf("failed to count ping errors: %w", err)
}
if prevPingTries == nil {
prevPingTries = new(uint)
}
handshakeNextRetryTime, err := crawler.db.FindHandshakeRetryTime(ctx, id)
if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment