Skip to content

Commit

Permalink
node: run ap.Run async and make sure bus client is set on node
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjan committed Aug 26, 2024
1 parent d4e9b46 commit 72359dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/renterd/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func newNode(cfg config.Config, network *consensus.Network, genesis types.Block)
}
setupFns = append(setupFns, fn{
name: "Autopilot",
fn: func(_ context.Context) error { ap.Run(); return nil },
fn: func(_ context.Context) error { go ap.Run(); return nil },
})
shutdownFns = append(shutdownFns, fn{
name: "Autopilot",
Expand All @@ -252,6 +252,7 @@ func newNode(cfg config.Config, network *consensus.Network, genesis types.Block)
setupFns: setupFns,
shutdownFns: shutdownFns,

bus: bc,
cfg: cfg,

logger: logger.Sugar(),
Expand Down

0 comments on commit 72359dc

Please sign in to comment.