From 132990efe9f22d89f7c6cbfa72d271e4425b01ea Mon Sep 17 00:00:00 2001 From: Meghan Bailey Date: Thu, 16 Jan 2025 08:57:07 -0800 Subject: [PATCH] fix variable naming --- pkg/core/util/hive/kernelcr.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/core/util/hive/kernelcr.go b/pkg/core/util/hive/kernelcr.go index 28bcd7080..ba2263fce 100644 --- a/pkg/core/util/hive/kernelcr.go +++ b/pkg/core/util/hive/kernelcr.go @@ -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 } }