From 20333d49f0b31295fa87920fdd1ab6152950efd3 Mon Sep 17 00:00:00 2001
From: longganhua <long>
Date: 星期四, 18 七月 2019 14:40:11 +0800
Subject: [PATCH] modify query.go

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

diff --git a/command/query.go b/command/query.go
index c8ad299..95a279f 100644
--- a/command/query.go
+++ b/command/query.go
@@ -168,7 +168,7 @@
 				break OUTER
 			}
 			handler.ResponseReceived(r)
-			fmt.Println("enter respch: r.payload", r.Payload)
+			fmt.Println("enter respch: r.payload", len(r.Payload))
 
 		case <-c.ShutdownCh:
 			return 1
@@ -222,7 +222,7 @@
 	}
 
 	/**   my self example*/
-	fmt.Println("x length is: ", payload)
+	fmt.Println("x length is: ", len(payload))
 
 	// // byte to file.
 	sdb.Dbconn.Close()
diff --git a/db/dbself.go b/db/dbself.go
index 162d561..8dbe2f9 100644
--- a/db/dbself.go
+++ b/db/dbself.go
@@ -25,7 +25,7 @@
 		return errors.New("get current path error")
 	}
 
-	filepath := fmt.Sprintf("%stest.db", path)
+	filepath := fmt.Sprintf("self: %stest.db", path)
 	fmt.Println(filepath)
 	db, err := New(filepath, "", false)
 	if err != nil {

--
Gitblit v1.8.0