Skip to content

Commit

Permalink
[Heartbeat] Clean up some nits from Explicit IDs (9697) (elastic#9926)
Browse files Browse the repository at this point in the history
This cleans up a couple small points missed in elastic#9697
  • Loading branch information
andrewvc authored Jan 7, 2019
1 parent a3b28de commit 05bd95f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions heartbeat/monitors/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func (m *Monitor) Stop() {
defer m.internalsMtx.Unlock()

// Free up the monitor ID for reuse
uniqueMonitorIDs.Delete(m.id)
defer uniqueMonitorIDs.Delete(m.id)

for _, t := range m.configuredJobs {
t.Stop()
Expand All @@ -329,7 +329,8 @@ func WithMonitorMeta(id string, name string, typ string, origJob Job) Job {
"monitor": common.MapStr{
"id": id,
"name": name,
"type": typ},
"type": typ,
},
},
origJob,
)
Expand Down

0 comments on commit 05bd95f

Please sign in to comment.