Skip to content

Commit a8d5b29

Browse files
committed
Pr feedback
1 parent d586259 commit a8d5b29

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

internal/watcher/credentials/credential_watcher_service.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ func (cws *CredentialWatcherService) Watch(ctx context.Context, ch chan<- Creden
7777
cws.watcher = watcher
7878

7979
cws.watcherMutex.Lock()
80-
commandSever := cws.agentConfig.Command
80+
commandServer := cws.agentConfig.Command
8181

8282
if cws.serverType == model.Auxiliary {
83-
commandSever = cws.agentConfig.AuxiliaryCommand
83+
commandServer = cws.agentConfig.AuxiliaryCommand
8484
}
8585

86-
cws.watchFiles(newCtx, credentialPaths(commandSever))
86+
cws.watchFiles(newCtx, credentialPaths(commandServer))
8787
cws.watcherMutex.Unlock()
8888

8989
for {
@@ -172,12 +172,12 @@ func (cws *CredentialWatcherService) checkForUpdates(ctx context.Context, ch cha
172172
cws.watcherMutex.Lock()
173173
defer cws.watcherMutex.Unlock()
174174

175-
commandSever := cws.agentConfig.Command
175+
commandServer := cws.agentConfig.Command
176176
if cws.serverType == model.Auxiliary {
177-
commandSever = cws.agentConfig.AuxiliaryCommand
177+
commandServer = cws.agentConfig.AuxiliaryCommand
178178
}
179179

180-
conn, err := grpc.NewGrpcConnection(newCtx, cws.agentConfig, commandSever)
180+
conn, err := grpc.NewGrpcConnection(newCtx, cws.agentConfig, commandServer)
181181
if err != nil {
182182
slog.ErrorContext(newCtx, "Unable to create new grpc connection", "error", err)
183183
cws.filesChanged.Store(false)

0 commit comments

Comments
 (0)