Skip to content

Commit

Permalink
share: change logs level in discovery (celestiaorg#1065)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs authored and distractedm1nd committed Sep 21, 2022
1 parent 4a5c2b5 commit 1851985
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service/share/backoff.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (b *backoffConnector) Connect(ctx context.Context, p peer.AddrInfo) error {
cache := b.connectionData(p.ID)
if time.Now().Before(cache.nexttry) {
b.cacheLk.Unlock()
return fmt.Errorf("share/discovery: backoff period is not ended for peer=%s", p.ID.String())
return fmt.Errorf("share/discovery: backoff period has not ended for peer=%s", p.ID.String())
}
cache.nexttry = time.Now().Add(cache.backoff.Delay())
b.cacheLk.Unlock()
Expand Down
2 changes: 1 addition & 1 deletion service/share/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (d *discovery) handlePeerFound(ctx context.Context, topic string, peer peer

err = d.connector.Connect(ctx, peer)
if err != nil {
log.Warn(err)
log.Debug(err)
d.set.Remove(peer.ID)
return
}
Expand Down

0 comments on commit 1851985

Please sign in to comment.