Skip to content

Commit

Permalink
fix: restart in serve-snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
troykessler committed Dec 5, 2024
1 parent 4a5b2d9 commit 5bf09f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sync/servesnapshots/servesnapshots.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func Start() error {
if canApplyBlocks {
// TODO: dydx needs restart here (and in height-sync), other chains too?
if app.Genesis.GetChainId() == "dydx-mainnet-1" {
if err := app.RestartAll(0); err != nil {
if err := app.RestartAll(snapshotCollector.GetInterval()); err != nil {
return fmt.Errorf("failed to restart app: %w", err)
}
}
Expand Down

0 comments on commit 5bf09f2

Please sign in to comment.