Skip to content

Commit

Permalink
a couple small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
whyrusleeping committed Dec 28, 2014
1 parent 3f9795c commit b653440
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion peer/peer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type keyset struct {

func (ks *keyset) generate() error {
var err error
ks.sk, ks.pk, err = ic.GenerateKeyPair(ic.RSA, 1024)
ks.sk, ks.pk, err = ic.GenerateKeyPair(ic.RSA, 1024, u.NewTimeSeededRand())
if err != nil {
return err
}
Expand Down
1 change: 0 additions & 1 deletion routing/dht/routing.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ func (dht *IpfsDHT) findProvidersAsyncRoutine(ctx context.Context, key u.Key, co
// Add unique providers from request, up to 'count'
for _, prov := range provs {
if ps.TryAdd(prov.ID) {
dht.peerstore.AddAddresses(prov.ID, prov.Addrs)
select {
case peerOut <- prov:
case <-ctx.Done():
Expand Down

0 comments on commit b653440

Please sign in to comment.