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 |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/rpc/recv.go b/rpc/recv.go
index 3a67145..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 {
@@ -74,7 +74,9 @@
 							count = 0
 							r.fnLogger("~~~shm recv image:", len(d))
 						}
-						r.out <- d
+						if len(d) > 2 {
+							r.out <- d
+						}
 					}
 				}
 			} else {
@@ -86,7 +88,9 @@
 						count = 0
 						r.fnLogger("~~~mangos recv image:", len(msg))
 					}
-					r.out <- msg
+					if len(msg) > 2 {
+						r.out <- msg
+					}
 				}
 			}
 			time.Sleep(10 * time.Millisecond)

--
Gitblit v1.8.0