autopilot: revert passing ctx to Start methods

This commit is contained in:
Elle Mouton
2025-04-11 09:57:24 +02:00
committed by ziggie
parent 6202597eec
commit fe3a862ec3
5 changed files with 10 additions and 19 deletions

View File

@@ -198,14 +198,14 @@ func (s *Server) Status(ctx context.Context,
// ModifyStatus activates the current autopilot agent, if active.
//
// NOTE: Part of the AutopilotServer interface.
func (s *Server) ModifyStatus(ctx context.Context,
func (s *Server) ModifyStatus(_ context.Context,
in *ModifyStatusRequest) (*ModifyStatusResponse, error) {
log.Debugf("Setting agent enabled=%v", in.Enable)
var err error
if in.Enable {
err = s.manager.StartAgent(ctx)
err = s.manager.StartAgent()
} else {
err = s.manager.StopAgent()
}