p2p: fix typo (#8793) (#8795)

This commit is contained in:
mergify[bot]
2022-06-19 11:52:57 -07:00
committed by GitHub
parent 74f3e15dc9
commit fb794b1ce5
+2 -2
View File
@@ -417,7 +417,7 @@ func (r *Router) routeChannel(
}
}
func (r *Router) numConccurentDials() int {
func (r *Router) numConcurrentDials() int {
if r.options.NumConcurrentDials == nil {
return runtime.NumCPU()
}
@@ -564,7 +564,7 @@ func (r *Router) dialPeers(ctx context.Context) {
// able to add peers at a reasonable pace, though the number
// is somewhat arbitrary. The action is further throttled by a
// sleep after sending to the addresses channel.
for i := 0; i < r.numConccurentDials(); i++ {
for i := 0; i < r.numConcurrentDials(); i++ {
wg.Add(1)
go func() {
defer wg.Done()