Persistance and recovery

This commit is contained in:
2026-03-19 13:23:23 -03:00
parent 51ef6e182d
commit 82d2e1b5f7
14 changed files with 859 additions and 130 deletions

View File

@ -38,9 +38,8 @@ func Runner(cfg app.Config) error {
}
userData := data.New()
orderStore := data.NewOrderStore()
fixManager := fix.NewManager(cfg.FIX, orderStore, notify)
fixManager := fix.NewManager(cfg.FIX, appStore, notify)
if err = fixManager.Start(); err != nil {
return fmt.Errorf("error starting FIX acceptor: %w", err)
}
@ -54,7 +53,7 @@ func Runner(cfg app.Config) error {
EnableJWTAuth: cfg.EnableJWTAuth,
}
api := rest.New(userData, appStore, orderStore, apiConfig, notify)
api := rest.New(userData, appStore, fixManager, apiConfig, notify)
api.Run()
cmd.WaitForInterruptSignal(nil)