Skip to content

Commit

Permalink
typo: autonat WithSchedule option comment
Browse files Browse the repository at this point in the history
## Changes

- "agressive" -> "aggressive": spelling fix
- "confident" -> "confidence": grammar fix; replace adjective with noun
- "refresh interval" -> "refreshInterval": to match the parameter name
  • Loading branch information
bryanchriswhite authored Jul 13, 2023
1 parent 87f3eea commit fe05e61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2p/host/autonat/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ func UsingAddresses(addrFunc AddrFunc) Option {
}
}

// WithSchedule configures how agressively probes will be made to verify the
// WithSchedule configures how aggressively probes will be made to verify the
// address of the host. retryInterval indicates how often probes should be made
// when the host lacks confident about its address, while refresh interval
// when the host lacks confidence about its address, while refreshInterval
// is the schedule of periodic probes when the host believes it knows its
// steady-state reachability.
func WithSchedule(retryInterval, refreshInterval time.Duration) Option {
Expand Down

0 comments on commit fe05e61

Please sign in to comment.