[tm-monitor] only restart EventMeter

This commit is contained in:
Anton Kaliaev 2017-03-21 20:37:52 +04:00
parent 6e00ce9bbd
commit c053c15231
No known key found for this signature in database
GPG Key ID: 7B6881D965918214
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ func (n *Node) RestartBackOff() error {
d := time.Duration(math.Exp2(float64(attempt))) d := time.Duration(math.Exp2(float64(attempt)))
time.Sleep(d * time.Second) time.Sleep(d * time.Second)
if err := n.Start(); err != nil { if err := n.em.Start(); err != nil {
n.logger.Log("err", errors.Wrap(err, "restart failed")) n.logger.Log("err", errors.Wrap(err, "restart failed"))
} else { } else {
// TODO: authenticate pubkey // TODO: authenticate pubkey