aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-06-19 16:30:19 +0200
committerMax Magorsch <arzano@gentoo.org>2020-06-19 16:30:19 +0200
commit65a6e45b4e381706688b022ff654aebbcc858d16 (patch)
tree36a9202f9fde56aaa0ff77f3cc7463d589496039
parentFix docker-compose (diff)
downloadarchives-65a6e45b4e381706688b022ff654aebbcc858d16.tar.gz
archives-65a6e45b4e381706688b022ff654aebbcc858d16.tar.bz2
archives-65a6e45b4e381706688b022ff654aebbcc858d16.zip
Wait for postgres to start up
Signed-off-by: Max Magorsch <arzano@gentoo.org>
-rw-r--r--archives.go3
1 files changed, 2 insertions, 1 deletions
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)
}