eleventh version
Deploy / Test, build and deploy (push) Failing after 2m15s

This commit is contained in:
2026-06-08 15:33:56 +00:00
parent 7626c1b831
commit e074eeedf2
22 changed files with 681 additions and 55 deletions
+10
View File
@@ -150,6 +150,16 @@ func Run(ctx context.Context, opts Options) error {
_, _ = fmt.Fprintf(opts.Stdout, "system unhalted: %s\n", opts.Reason)
return nil
}
if cfg.App.Mode == domain.ModeLiveTrade {
persistedMode, err := repo.GetSystemMode(ctx)
if err != nil {
return fmt.Errorf("read persisted system mode: %w", err)
}
if persistedMode == domain.ModeLiveReadonly {
cfg.App.Mode = domain.ModeLiveReadonly
log.Warn("runtime mode downgraded from live_trade to persisted live_readonly")
}
}
gateway, closer, err := buildGateway(ctx, cfg, log)
if err != nil {