autopilot: revert passing ctx to Start methods

This commit is contained in:
Elle Mouton committed 2025-05-22 14:14:40 +02:00
1 parent c68a19c0ba
commit 95d34be0d3
5 files changed
+10 -19

No files matched your search

+2 -2
View File
@@ -202,10 +202,10 @@ func New(cfg Config, initialState []LocalChannel) (*Agent, error) {
// Start starts the agent along with any goroutines it needs to perform its
// normal duties.
func (a *Agent) Start(ctx context.Context) error {
func (a *Agent) Start() error {
var err error
a.started.Do(func() {
ctx, cancel := context.WithCancel(ctx)
ctx, cancel := context.WithCancel(context.Background())
a.cancel = fn.Some(cancel)
err = a.start(ctx)