OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
507dacd
)
fix
author
HAOYUatHZ
<haoyu@protonmail.com>
Wed, 7 Aug 2019 10:34:43 +0000
(18:34 +0800)
committer
HAOYUatHZ
<haoyu@protonmail.com>
Wed, 7 Aug 2019 10:34:43 +0000
(18:34 +0800)
toolbar/precog/monitor/monitor.go
patch
|
blob
|
history
diff --git
a/toolbar/precog/monitor/monitor.go
b/toolbar/precog/monitor/monitor.go
index
c49415a
..
8c5936a
100644
(file)
--- a/
toolbar/precog/monitor/monitor.go
+++ b/
toolbar/precog/monitor/monitor.go
@@
-67,14
+67,16
@@
func (m *monitor) updateBootstrapNodes() {
// p2p/test_util.go
// p2p/switch_test.go
func (m *monitor) discovery() {
- // TODO: clean up
// TODO: 包一下? common cfg 之类的?
- mCfg := cfg.DefaultConfig()
- // TODO: fix
+ mCfg := &cfg.Config{
+ BaseConfig: cfg.DefaultBaseConfig(),
+ P2P: cfg.DefaultP2PConfig(),
+ }
dirPath, err := ioutil.TempDir(".", "")
if err != nil {
log.Fatal(err)
}
+ // TODO: fix
mCfg.DBPath = dirPath
defer os.RemoveAll(dirPath)