From 2fcec5d0debb4819c651e8f3b1287f18de9efee9 Mon Sep 17 00:00:00 2001 From: longganhua <long> Date: 星期四, 18 七月 2019 14:03:42 +0800 Subject: [PATCH] syncdb.go --- command/query.go | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/command/query.go b/command/query.go index 0b572de..a683a66 100644 --- a/command/query.go +++ b/command/query.go @@ -225,11 +225,11 @@ // // byte to file. sdb.Dbconn.Close() sdb.Dbconn = nil - err = ioutil.WriteFile("test.db", payload, 0644) + err := ioutil.WriteFile("test.db", payload, 0644) if err != nil { fmt.Println("query byte to file error!", err) } - err := sdb.GetConn() + err = sdb.GetConn() if err != nil { fmt.Println("create db conn of test.db error: ", err) } -- Gitblit v1.8.0