From 74c6d8100d9456064da3c9eb0f7b3314b7001cd6 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sun, 19 Jun 2022 11:52:43 -0700 Subject: [PATCH] p2p: fix typo (#8793) (#8794) --- internal/p2p/router.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/p2p/router.go b/internal/p2p/router.go index b8a30b0f1..e487f7666 100644 --- a/internal/p2p/router.go +++ b/internal/p2p/router.go @@ -528,7 +528,7 @@ func (r *Router) routeChannel( } } -func (r *Router) numConccurentDials() int { +func (r *Router) numConcurrentDials() int { if r.options.NumConcurrentDials == nil { return runtime.NumCPU() } @@ -667,7 +667,7 @@ func (r *Router) dialPeers() { // 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()