Skip to content

Commit

Permalink
Update p2p/ipld/write.go
Browse files Browse the repository at this point in the history
Co-authored-by: Ismail Khoffi <[email protected]>
  • Loading branch information
Wondertan and liamsi committed Jun 11, 2021
1 parent a1e34d1 commit 48f281c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion p2p/ipld/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ func (p *provider) worker() {
select {
case id := <-p.jobs:
err := p.croute.Provide(p.ctx, id, true)
if err != nil && err != kbucket.ErrLookupFailure { // Check for error to decrease test log spamming
// Omit ErrLookupFailure to decrease test log spamming as
// this simply indicates we haven't connected to other DHT nodes yet.
if err != nil && err != kbucket.ErrLookupFailure {
if p.Err() == nil {
p.errLk.Lock()
p.err = err
Expand Down

0 comments on commit 48f281c

Please sign in to comment.