Skip to content

Commit

Permalink
fix variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
meghan-bailey committed Jan 16, 2025
1 parent 968e9ca commit 132990e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/core/util/hive/kernelcr.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ func (pH *PluginHandler) DynamicReloader(driverConfig *config.DriverConfig) {
valid = true
}
if valid {
for serv, phServ := range *pH.Services {
if phServ.ConfigContext != nil && *phServ.ConfigContext.CmdSenderChan != nil {
*phServ.ConfigContext.CmdSenderChan <- core.KernelCmd{
PluginName: phServ.Name,
for s, sPh := range *pH.Services {
if sPh.ConfigContext != nil && *sPh.ConfigContext.CmdSenderChan != nil {
*sPh.ConfigContext.CmdSenderChan <- core.KernelCmd{
PluginName: sPh.Name,
Command: core.PLUGIN_EVENT_STOP,
}
driverConfig.CoreConfig.Log.Printf("Shutting down service: %s\n", serv)
driverConfig.CoreConfig.Log.Printf("Shutting down service: %s\n", s)
} else {
driverConfig.CoreConfig.Log.Printf("Service not properly initialized to shut down for cert reloading: %s\n", serv)
driverConfig.CoreConfig.Log.Printf("Service not properly initialized to shut down for cert reloading: %s\n", s)
goto waitToReload
}
}
Expand Down

0 comments on commit 132990e

Please sign in to comment.