mirror of
https://github.com/fluencelabs/go-libp2p-kad-dht
synced 2025-07-30 19:42:01 +00:00
Decapitalized log.Debug messages
According to golang standards, these should not be capitalized nor having a trailing period, AFAIK. License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
This commit is contained in:
@@ -46,7 +46,7 @@ func (dht *IpfsDHT) PutValue(ctx context.Context, key key.Key, value []byte) err
|
||||
|
||||
rec, err := record.MakePutRecord(sk, key, value, sign)
|
||||
if err != nil {
|
||||
log.Debug("Creation of record failed!")
|
||||
log.Debug("creation of record failed!")
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -346,7 +346,7 @@ func (dht *IpfsDHT) findProvidersAsyncRoutine(ctx context.Context, key key.Key,
|
||||
select {
|
||||
case peerOut <- prov:
|
||||
case <-ctx.Done():
|
||||
log.Debug("Context timed out sending more providers")
|
||||
log.Debug("context timed out sending more providers")
|
||||
return nil, ctx.Err()
|
||||
}
|
||||
}
|
||||
@@ -397,7 +397,7 @@ func (dht *IpfsDHT) FindPeer(ctx context.Context, id peer.ID) (pstore.PeerInfo,
|
||||
// Sanity...
|
||||
for _, p := range peers {
|
||||
if p == id {
|
||||
log.Debug("Found target peer in list of closest peers...")
|
||||
log.Debug("found target peer in list of closest peers...")
|
||||
return dht.peerstore.PeerInfo(p), nil
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user