Skip to content

Commit 711ceb3

Browse files
Merge pull request #627 from pastelnetwork/logFix
fix log
2 parents b1f1871 + f6034c6 commit 711ceb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

p2p/kademlia/network.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,8 @@ func (s *Network) handleReplicateRequest(ctx context.Context, req *ReplicateData
409409
return fmt.Errorf("unable to retrieve batch replication keys: %w", err)
410410
}
411411

412+
log.WithContext(ctx).WithField("keys", len(keysToStore)).WithField("from-ip", ip).Info("store batch replication keys to be stored")
412413
if len(keysToStore) > 0 {
413-
log.WithContext(ctx).WithField("keys", len(keysToStore)).WithField("from-ip", ip).Info("store batch replication keys to be stored")
414414
if err := s.dht.store.StoreBatchRepKeys(keysToStore, string(id), ip, port); err != nil {
415415
return fmt.Errorf("unable to store batch replication keys: %w", err)
416416
}

0 commit comments

Comments
 (0)