OSDN Git Service

fk
authorHAOYUatHZ <haoyu@protonmail.com>
Sat, 31 Aug 2019 12:33:55 +0000 (20:33 +0800)
committerHAOYUatHZ <haoyu@protonmail.com>
Sat, 31 Aug 2019 12:33:55 +0000 (20:33 +0800)
toolbar/precog/monitor/discover.go
toolbar/precog/monitor/stats.go

index ea799dc..757611c 100644 (file)
@@ -15,6 +15,7 @@ var (
 )
 
 func (m *monitor) discoveryRoutine() {
+       // TODO: ip&port?
        // discvMap maps a node's public key to the node itself
        discvMap := make(map[string]*dht.Node)
        ticker := time.NewTicker(time.Duration(discvFreqSec) * time.Second)
index f16b09e..6a6d08f 100644 (file)
@@ -15,7 +15,6 @@ import (
        "github.com/vapor/toolbar/precog/database/orm"
 )
 
-// create or update: https://github.com/jinzhu/gorm/issues/1307
 func (m *monitor) upsertNode(node *config.Node) error {
        if node.XPub != nil {
                node.PublicKey = fmt.Sprintf("%v", node.XPub.PublicKey().String())