From 38938ba493e81edda7454fce4e5ca4dc711febf6 Mon Sep 17 00:00:00 2001 From: Krasi Georgiev Date: Mon, 15 Jan 2018 11:42:09 +0000 Subject: [PATCH] comment nits --- discovery/manager.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discovery/manager.go b/discovery/manager.go index 427a35251c..bed5c50e03 100644 --- a/discovery/manager.go +++ b/discovery/manager.go @@ -69,8 +69,8 @@ func NewManager(logger log.Logger) *Manager { } } -// Manager maintains a set of discovery providers and sends each update to a channel used by other packages. -// Targets sent to the channel are grouped by the target set name. +// Manager maintains a set of discovery providers and sends each update to a map channel. +// Targets are grouped by the target set name. type Manager struct { logger log.Logger actionCh chan func(context.Context) @@ -182,7 +182,7 @@ func (m *Manager) allGroups() map[string][]*targetgroup.Group { for pkey, tsets := range m.targets { for _, tg := range tsets { // Even if the target group 'tg' is empty we still need to send it to the 'Scrape manager' - // to singal that is needs to stop all scrape loops for this target set. + // to signal that it needs to stop all scrape loops for this target set. tSetsAll[pkey.setName] = append(tSetsAll[pkey.setName], tg) } }