From 84fe001d1d31101b3aded5535aca3edc2c8544ef Mon Sep 17 00:00:00 2001
From: longganhua <long>
Date: 星期四, 18 七月 2019 14:59:47 +0800
Subject: [PATCH] modify query.go

---
 db/dbself.go     |    4 ++--
 command/query.go |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/command/query.go b/command/query.go
index 95a279f..12a095b 100644
--- a/command/query.go
+++ b/command/query.go
@@ -164,11 +164,11 @@
 			handler.AckReceived(a)
 
 		case r := <-respCh:
+			fmt.Println("enter respch: r.payload", len(r.Payload))
 			if r.From == "" {
 				break OUTER
 			}
 			handler.ResponseReceived(r)
-			fmt.Println("enter respch: r.payload", len(r.Payload))
 
 		case <-c.ShutdownCh:
 			return 1
diff --git a/db/dbself.go b/db/dbself.go
index 8dbe2f9..bede478 100644
--- a/db/dbself.go
+++ b/db/dbself.go
@@ -25,8 +25,8 @@
 		return errors.New("get current path error")
 	}
 
-	filepath := fmt.Sprintf("self: %stest.db", path)
-	fmt.Println(filepath)
+	filepath := fmt.Sprintf("%stest.db", path)
+	fmt.Println("self: ========>", filepath)
 	db, err := New(filepath, "", false)
 	if err != nil {
 		fmt.Println("new db database: ", err)

--
Gitblit v1.8.0