autopilot: revert passing ctx to Start methods
This commit is contained in:
5 files changed
+10
-19
No files matched your search
@@ -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()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user