You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At file dot/network/discovery.go the function checkPeerCount starts a looping to discover new peers at a defined amount of time, however, a new context is created inside the looping followed by the statement defer cancel() which is only called once the function exits
This context is used by the findPeers as a timeout trigger, but this can be done inside the function using time.NewTimer(...) without the needed to use a context.