Commit 9c384bd4 authored by vicotor's avatar vicotor

update rootcmd

parent 3c0346bc
...@@ -3,6 +3,7 @@ package main ...@@ -3,6 +3,7 @@ package main
import ( import (
rotatelogs "github.com/lestrrat-go/file-rotatelogs" rotatelogs "github.com/lestrrat-go/file-rotatelogs"
"github.com/odysseus/nodemanager/config" "github.com/odysseus/nodemanager/config"
"github.com/odysseus/nodemanager/metrics"
"github.com/odysseus/nodemanager/server" "github.com/odysseus/nodemanager/server"
"github.com/rifflock/lfshook" "github.com/rifflock/lfshook"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
...@@ -73,6 +74,7 @@ func runNode() { ...@@ -73,6 +74,7 @@ func runNode() {
log.WithError(err).Error("run node failed") log.WithError(err).Error("run node failed")
return return
} }
metrics.StartMetrics()
wg := sync.WaitGroup{} wg := sync.WaitGroup{}
wg.Add(1) wg.Add(1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment