include packet and system info with node stats (#92)
* include packet and system info with node stats * add more packet and system stats * revert magefile, clean up system stats error handling * update procol version * dz review: error return
This commit is contained in:
@@ -309,7 +309,9 @@ func (r *RedisRouter) statsWorker() {
|
||||
// update periodically seconds
|
||||
select {
|
||||
case <-time.After(statsUpdateInterval):
|
||||
stats.UpdateCurrentNodeStats(r.currentNode.Stats)
|
||||
if err := stats.UpdateCurrentNodeStats(r.currentNode.Stats); err != nil {
|
||||
logger.Errorw("could not update node stats", err, "nodeID", r.currentNode.Id)
|
||||
}
|
||||
if err := r.RegisterNode(); err != nil {
|
||||
logger.Errorw("could not update node", err, "nodeID", r.currentNode.Id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user