mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-09-19 08:44:14 +00:00
disable stats migration
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user