|
@@ -110,7 +110,7 @@ loop:
|
|
|
pb.addProfileAlert(profileAlert)
|
|
|
|
|
|
case pluginName := <-pb.watcher.PluginEvents:
|
|
|
- // this can be ran in goroutine, but then locks will be needed
|
|
|
+ // this can be run in goroutine, but then locks will be needed
|
|
|
pluginMutex.Lock()
|
|
|
log.Tracef("going to deliver %d alerts to plugin %s", len(pb.alertsByPluginName[pluginName]), pluginName)
|
|
|
tmpAlerts := pb.alertsByPluginName[pluginName]
|
|
@@ -139,7 +139,7 @@ loop:
|
|
|
pb.Kill()
|
|
|
break loop
|
|
|
case pluginName := <-pb.watcher.PluginEvents:
|
|
|
- // this can be ran in goroutine, but then locks will be needed
|
|
|
+ // this can be run in goroutine, but then locks will be needed
|
|
|
pluginMutex.Lock()
|
|
|
log.Tracef("going to deliver %d alerts to plugin %s", len(pb.alertsByPluginName[pluginName]), pluginName)
|
|
|
tmpAlerts := pb.alertsByPluginName[pluginName]
|
|
@@ -206,7 +206,7 @@ func (pb *PluginBroker) loadConfig(path string) error {
|
|
|
return err
|
|
|
}
|
|
|
|
|
|
-// checks whether every notification in profile has it's own config file
|
|
|
+// checks whether every notification in profile has its own config file
|
|
|
func (pb *PluginBroker) verifyPluginConfigsWithProfile() error {
|
|
|
for _, profileCfg := range pb.profileConfigs {
|
|
|
for _, pluginName := range profileCfg.Notifications {
|
|
@@ -219,7 +219,7 @@ func (pb *PluginBroker) verifyPluginConfigsWithProfile() error {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
-// check whether each plugin in profile has it's own binary
|
|
|
+// check whether each plugin in profile has its own binary
|
|
|
func (pb *PluginBroker) verifyPluginBinaryWithProfile() error {
|
|
|
for _, profileCfg := range pb.profileConfigs {
|
|
|
for _, pluginName := range profileCfg.Notifications {
|