Skip to content

Commit

Permalink
Merge pull request #80 from SumoLogic/maisie-fix-metrics
Browse files Browse the repository at this point in the history
Initialize @pods_to_services before timer_execute
  • Loading branch information
maimaisie committed Jul 18, 2019
2 parents dad13ae + 7e316c5 commit 736b641
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def start_service_monitor
@last_recreated = Time.now.to_i
log.debug "last_recreated initialized to #{@last_recreated}"

@pods_to_services = Concurrent::Map.new {|h, k| h[k] = []}
timer_execute(:service_monitor, 10, &method(:run_monitor))
end

Expand Down

0 comments on commit 736b641

Please sign in to comment.