mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 06:07:16 +01:00
autopilot: revert passing ctx to Start methods
This commit is contained in:
@@ -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