diff --git a/x-pack/elastic-agent/pkg/agent/application/gateway/fleet/fleet_gateway.go b/x-pack/elastic-agent/pkg/agent/application/gateway/fleet/fleet_gateway.go index c81e649b579..fd835ee95f4 100644 --- a/x-pack/elastic-agent/pkg/agent/application/gateway/fleet/fleet_gateway.go +++ b/x-pack/elastic-agent/pkg/agent/application/gateway/fleet/fleet_gateway.go @@ -127,7 +127,8 @@ func newFleetGatewayWithScheduler( stateStore stateStore, ) (gateway.FleetGateway, error) { - // Backoff implementation doesn't support the using of a context as the shutdown mechanism. + // Backoff implementation doesn't support the use of a context [cancellation] + // as the shutdown mechanism. // So we keep a done channel that will be closed when the current context is shutdown. done := make(chan struct{})