chore: add debug log to identify when peer is discovered

This commit is contained in:
Richard Ramos 2023-03-31 08:44:01 -04:00
parent 7c56ceb139
commit 98e14cf0f6
No known key found for this signature in database
GPG Key ID: 1CE87DB518195760
1 changed files with 2 additions and 0 deletions

View File

@ -243,6 +243,8 @@ func (wakuPX *WakuPeerExchange) iterate(ctx context.Context) error {
continue
}
wakuPX.log.Debug("Discovered px peers via discv5")
wakuPX.enrCacheMutex.Lock()
wakuPX.enrCache[iterator.Node().ID()] = peerRecord{
idx: len(wakuPX.enrCache),