Skip to content

Commit 392c0c7

Browse files
committed
fix: more comment fixes
1 parent c4a7fe9 commit 392c0c7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

dht.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -608,22 +608,22 @@ func (dht *IpfsDHT) getMode() mode {
608608
return dht.mode
609609
}
610610

611-
// Context return dht's context
611+
// Context returns the DHT's context.
612612
func (dht *IpfsDHT) Context() context.Context {
613613
return dht.ctx
614614
}
615615

616-
// Process return dht's process
616+
// Process returns the DHT's process.
617617
func (dht *IpfsDHT) Process() goprocess.Process {
618618
return dht.proc
619619
}
620620

621-
// RoutingTable return dht's routingTable
621+
// RoutingTable returns the DHT's routingTable.
622622
func (dht *IpfsDHT) RoutingTable() *kb.RoutingTable {
623623
return dht.routingTable
624624
}
625625

626-
// Close calls Process Close
626+
// Close calls Process Close.
627627
func (dht *IpfsDHT) Close() error {
628628
return dht.proc.Close()
629629
}
@@ -632,22 +632,22 @@ func mkDsKey(s string) ds.Key {
632632
return ds.NewKey(base32.RawStdEncoding.EncodeToString([]byte(s)))
633633
}
634634

635-
// PeerID returns the DHT node's Peer ID
635+
// PeerID returns the DHT node's Peer ID.
636636
func (dht *IpfsDHT) PeerID() peer.ID {
637637
return dht.self
638638
}
639639

640-
// PeerKey returns a DHT key, converted from the DHT node's Peer ID
640+
// PeerKey returns a DHT key, converted from the DHT node's Peer ID.
641641
func (dht *IpfsDHT) PeerKey() []byte {
642642
return kb.ConvertPeerID(dht.self)
643643
}
644644

645-
// Host returns the libp2p host this DHT is operating with
645+
// Host returns the libp2p host this DHT is operating with.
646646
func (dht *IpfsDHT) Host() host.Host {
647647
return dht.host
648648
}
649649

650-
// Ping sends a ping message to the passed peer and waits for a response
650+
// Ping sends a ping message to the passed peer and waits for a response.
651651
func (dht *IpfsDHT) Ping(ctx context.Context, p peer.ID) error {
652652
req := pb.NewMessage(pb.Message_PING, nil, 0)
653653
resp, err := dht.sendRequest(ctx, p, req)

0 commit comments

Comments
 (0)