Skip to content

Commit

Permalink
Fix node setup (#1477)
Browse files Browse the repository at this point in the history
Refactoring the node setup it looks like I made `autopilot.Run`
blocking. This prevents S3 setup from successfully completing.

Fixes #1473
  • Loading branch information
ChrisSchinnerl authored Aug 26, 2024
2 parents d4e9b46 + 72359dc commit e2ce38a
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 e2ce38a

Please sign in to comment.