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:
2521508
)
update
author
HAOYUatHZ
<haoyu@protonmail.com>
Thu, 29 Aug 2019 07:29:24 +0000
(15:29 +0800)
committer
HAOYUatHZ
<haoyu@protonmail.com>
Thu, 29 Aug 2019 07:29:24 +0000
(15:29 +0800)
toolbar/precog/monitor/monitor.go
patch
|
blob
|
history
diff --git
a/toolbar/precog/monitor/monitor.go
b/toolbar/precog/monitor/monitor.go
index
500a315
..
41d80c3
100644
(file)
--- a/
toolbar/precog/monitor/monitor.go
+++ b/
toolbar/precog/monitor/monitor.go
@@
-92,6
+92,7
@@
func makePath() (string, error) {
func (m *monitor) Run() {
var seeds []string
+ // TODO: should I save in db?
for _, node := range m.cfg.Nodes {
seeds = append(seeds, fmt.Sprintf("%s:%d", node.IP, node.Port))
if err := m.upsertNode(&node); err != nil {