Rename c by reloadWorkerKeys
@@ -150,12 +150,12 @@ func (cmd *TSACommand) Runner(args []string) (ifrit.Runner, error) {
// other configuration can potentially be added.
go func() {
reloadWorkerKeys := make(chan os.Signal, 1)
- defer close(c)
- signal.Notify(c, syscall.SIGHUP)
+ defer close(reloadWorkerKeys)
+ signal.Notify(reloadWorkerKeys, syscall.SIGHUP)
for {
// Block until a signal is received.
- <-c
+ <-reloadWorkerKeys
logger.Info("reloading-config")
