Merge pull request #12307 from hashicorp/b-groupservices-avoid-double-tg-lookup

client: avoid double group lookup within groupservice hook setup.
This commit is contained in:
James Rasell 2022-03-16 17:00:01 +01:00 committed by GitHub
commit 91e4d20b1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ func newGroupServiceHook(cfg groupServiceHookConfig) *groupServiceHook {
delay: shutdownDelay, delay: shutdownDelay,
networkStatusGetter: cfg.networkStatusGetter, networkStatusGetter: cfg.networkStatusGetter,
logger: cfg.logger.Named(groupServiceHookName), logger: cfg.logger.Named(groupServiceHookName),
services: cfg.alloc.Job.LookupTaskGroup(cfg.alloc.TaskGroup).Services, services: tg.Services,
shutdownDelayCtx: cfg.shutdownDelayCtx, shutdownDelayCtx: cfg.shutdownDelayCtx,
} }