Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix function names in comment #2765

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion p2p/host/autorelay/relay_finder.go
Expand Up @@ -671,7 +671,7 @@ func (rf *relayFinder) usingRelay(p peer.ID) bool {
return ok
}

// addCandidates adds a candidate to the candidates set. Assumes caller holds candidateMx mutex
// addCandidate adds a candidate to the candidates set. Assumes caller holds candidateMx mutex
func (rf *relayFinder) addCandidate(cand *candidate) {
_, exists := rf.candidates[cand.ai.ID]
rf.candidates[cand.ai.ID] = cand
Expand Down
2 changes: 1 addition & 1 deletion p2p/host/peerstore/pstoreds/addr_book_gc.go
Expand Up @@ -127,7 +127,7 @@ func (gc *dsAddrBookGc) background() {
}
}

// purgeCycle runs a single GC purge cycle. It operates within the lookahead window if lookahead is enabled; else it
// purgeLookahead runs a single GC purge cycle. It operates within the lookahead window if lookahead is enabled; else it
// visits all entries in the datastore, deleting the addresses that have expired.
func (gc *dsAddrBookGc) purgeLookahead() {
select {
Expand Down
2 changes: 1 addition & 1 deletion p2p/protocol/identify/id_test.go
Expand Up @@ -102,7 +102,7 @@ func emitAddrChangeEvt(t *testing.T, h host.Host) {
}
}

// TestIDServiceWait gives the ID service 1s to finish after dialing
// TestIDService gives the ID service 1s to finish after dialing
// this is because it used to be concurrent. Now, Dial wait till the
// id service is done.
func TestIDService(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion p2p/transport/webtransport/cert_manager.go
Expand Up @@ -71,7 +71,7 @@ func newCertManager(hostKey ic.PrivKey, clock clock.Clock) (*certManager, error)
return m, nil
}

// getCurrentTimeBucket returns the canonical start time of the given time as
// getCurrentBucketStartTime returns the canonical start time of the given time as
// bucketed by ranges of certValidity since unix epoch (plus an offset). This
// lets you get the same time ranges across reboots without having to persist
// state.
Expand Down