aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'soko.go')
-rw-r--r--soko.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/soko.go b/soko.go
index 34bab62..c38f660 100644
--- a/soko.go
+++ b/soko.go
@@ -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()