Skip to content

Commit

Permalink
fix: cache addresses when receiving provider records
Browse files Browse the repository at this point in the history
Extracted from 0c90569
  • Loading branch information
Jorropo committed Sep 18, 2023
1 parent 58b2c04 commit 3cc0b9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ func (dht *IpfsDHT) handleAddProvider(ctx context.Context, p peer.ID, pmes *pb.M
continue
}

dht.providerStore.AddProvider(ctx, key, peer.AddrInfo{ID: pi.ID, Addrs: pi.Addrs})
dht.providerStore.AddProvider(ctx, key, *pi)
}

return nil, nil
Expand Down

0 comments on commit 3cc0b9c

Please sign in to comment.