From f7c4a3cfd07adede3308f8d9d3d7315427d90a7c Mon Sep 17 00:00:00 2001
From: zhangmeng <zhangmeng@aiotlink.com>
Date: 星期五, 17 一月 2020 09:40:08 +0800
Subject: [PATCH] bug fixed logs print copy

---
 rpc/recv.go |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/rpc/recv.go b/rpc/recv.go
index 6bf4986..f2bfc60 100644
--- a/rpc/recv.go
+++ b/rpc/recv.go
@@ -8,7 +8,7 @@
 	"basic.com/valib/deliver.git"
 )
 
-const mode = deliver.Shm
+const mode = deliver.PushPull
 
 // Reciever recv from ipc
 type Reciever struct {
@@ -88,7 +88,7 @@
 						count = 0
 						r.fnLogger("~~~mangos recv image:", len(msg))
 					}
-					if len(d) > 2 {
+					if len(msg) > 2 {
 						r.out <- msg
 					}
 				}

--
Gitblit v1.8.0