From 65a6e45b4e381706688b022ff654aebbcc858d16 Mon Sep 17 00:00:00 2001 From: Max Magorsch Date: Fri, 19 Jun 2020 16:30:19 +0200 Subject: Wait for postgres to start up Signed-off-by: Max Magorsch --- archives.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/archives.go b/archives.go index feb4f4b..b6b2465 100644 --- a/archives.go +++ b/archives.go @@ -6,6 +6,7 @@ import ( "archives/pkg/importer" "flag" "fmt" + "time" ) var flagvar int @@ -37,5 +38,5 @@ func main() { // TODO this has to be solved differently // wait for postgres to come up func waitForPostgres() { - //time.Sleep(2 * time.Second) + time.Sleep(4 * time.Second) } -- cgit v1.2.3-65-gdbad