diff options
Diffstat (limited to 'soko.go')
-rw-r--r-- | soko.go | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -27,8 +27,6 @@ import ( func main() { initLoggers() - waitForPostgres() - serve := flag.Bool("serve", false, "Start serving the application") selfchecks := flag.Bool("enable-selfchecks", false, "Perform selfchecks periodicals to monitor the consistency of the data") update := flag.Bool("update", false, "Perform an incremental update of the package data") @@ -134,12 +132,6 @@ func initLoggers() { slog.SetDefault(slog.New(handler)) } -// TODO this has to be solved differently -// wait for postgres to come up -func waitForPostgres() { - time.Sleep(5 * time.Second) -} - func runSelfChecks() { gocron.Every(1).Hour().From(gocron.NextTick()).Do(selfcheck.AllPackages) <-gocron.Start() |