disable stats migration

This commit is contained in:
Evan Jarrett
2025-12-31 13:56:39 -06:00
parent cd6928ec4a
commit 74c90697a7
+8 -8
View File
@@ -161,14 +161,14 @@ func serveRegistry(cmd *cobra.Command, args []string) error {
// Initialize Jetstream workers (background services before HTTP routes)
initializeJetstream(uiDatabase, &cfg.Jetstream, defaultHoldDID, testMode, refresher)
// Run stats migration to holds (one-time migration, skipped if already done)
go func() {
// Wait for services to be ready (Docker startup race condition)
time.Sleep(10 * time.Second)
if err := db.MigrateStatsToHolds(context.Background(), uiDatabase); err != nil {
slog.Warn("Stats migration failed", "error", err)
}
}()
// // Run stats migration to holds (one-time migration, skipped if already done)
// go func() {
// // Wait for services to be ready (Docker startup race condition)
// time.Sleep(10 * time.Second)
// if err := db.MigrateStatsToHolds(context.Background(), uiDatabase); err != nil {
// slog.Warn("Stats migration failed", "error", err)
// }
// }()
// Create main chi router
mainRouter := chi.NewRouter()