From 7251c43a571d209bbbfa0a419f52634334edbda7 Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 10 Oct 2018 01:15:21 +0800 Subject: [PATCH] new es client --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index 9f8fa5a..d24ecff 100644 --- a/main.go +++ b/main.go @@ -47,6 +47,11 @@ func main() { log.Fatal(err) } + err = es.NewClient() + if err != nil { + log.Fatal(err) + } + // connect to database db, err := model.NewDB() if err != nil {