Skip to content

Commit

Permalink
deterministic manager
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt authored Aug 16, 2024
1 parent 28d56b0 commit 1bae7ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/v2/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func NewModuleManager[T transaction.Tx](
modules map[string]appmodulev2.AppModule,
) *MM[T] {
// good defaults for the module manager order
modulesName := slices.Collect(maps.Keys(modules))
modulesName := slices.Sorted(maps.Keys(modules))
if len(config.PreBlockers) == 0 {
config.PreBlockers = modulesName
}
Expand Down

0 comments on commit 1bae7ea

Please sign in to comment.