Skip to content

Commit

Permalink
Fix error not saving newer metrics with sync map
Browse files Browse the repository at this point in the history
  • Loading branch information
cortze committed May 4, 2022
1 parent fea1998 commit b2822d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/analyzer/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ func (s *StateAnalyzer) Run() {
if err != nil {
log.Errorf("unable to calculate the performance for validator %d on slot %d. %s", task.ValIdx, task.Slot, err.Error())
}
// save the calculated rewards on the the list of items
fmt.Println(met)
s.Metrics.Store(task.ValIdx, met)
}

}()
Expand Down

0 comments on commit b2822d0

Please sign in to comment.