OSDN Git Service

fix
authorHAOYUatHZ <haoyu@protonmail.com>
Wed, 7 Aug 2019 00:10:25 +0000 (08:10 +0800)
committerHAOYUatHZ <haoyu@protonmail.com>
Wed, 7 Aug 2019 00:10:25 +0000 (08:10 +0800)
toolbar/precog/monitor/monitor.go

index 81224e1..4a1a01d 100644 (file)
@@ -75,9 +75,9 @@ func (m *monitor) discovery() {
        defer os.RemoveAll(dirPath)
 
        // TODO: fix
-       cfg.DBPath = dirPath
+       mCfg.DBPath = dirPath
        // TODO: fix
-       cfg.P2P.ListenAddress = "127.0.1.1:0"
+       mCfg.P2P.ListenAddress = "127.0.1.1:0"
        swPrivKey, err := signlib.NewPrivKey()
        if err != nil {
                log.Fatal(err)