p2p: fix typo (#8793)

Fix the typo in router
This commit is contained in:
Ian Jungyong Um
2022-06-19 15:26:25 +00:00
committed by GitHub
parent 4d820ff4f5
commit e3e162ff10
+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()