OSDN Git Service

add comments
authorHAOYUatHZ <haoyu@protonmail.com>
Sat, 17 Aug 2019 07:26:40 +0000 (15:26 +0800)
committerHAOYUatHZ <haoyu@protonmail.com>
Sat, 17 Aug 2019 07:26:40 +0000 (15:26 +0800)
toolbar/precog/monitor/connection.go

index 54f3ef3..fba88af 100644 (file)
@@ -41,6 +41,7 @@ func (m *monitor) dialNodes() error {
                addresses = append(addresses, address)
        }
 
+       // connected peers will be skipped in switch.DialPeers()
        m.sw.DialPeers(addresses)
        return nil
 }