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:
b2a592b
)
add
author
HAOYUatHZ
<haoyu@protonmail.com>
Mon, 5 Aug 2019 08:51:05 +0000
(16:51 +0800)
committer
HAOYUatHZ
<haoyu@protonmail.com>
Mon, 5 Aug 2019 08:51:05 +0000
(16:51 +0800)
toolbar/precog/monitor/monitor.go
patch
|
blob
|
history
diff --git
a/toolbar/precog/monitor/monitor.go
b/toolbar/precog/monitor/monitor.go
index
39568bd
..
278f732
100644
(file)
--- a/
toolbar/precog/monitor/monitor.go
+++ b/
toolbar/precog/monitor/monitor.go
@@
-59,6
+59,13
@@
func (m *monitor) updateBootstrapNodes() {
// p2p/test_util.go
// p2p/switch_test.go
func (m *monitor) discovery() {
+ mCfg := &cfg.Config{}
+ // testDB
+ // swPrivKey
+ // initSwitchFunc
+ sw := p2p.MakeSwitch(mCfg, testDB, swPrivKey, initSwitchFunc)
+ sw.Start()
+ defer sw.Stop()
}
func (m *monitor) monitorRountine() error {