From 0c22e1e1b5c77fa5d09600200239bd3a0907fc78 Mon Sep 17 00:00:00 2001 From: 554325746@qq.com <554325746@qq.com> Date: 星期四, 22 八月 2019 14:53:29 +0800 Subject: [PATCH] mem leak bug --- mode.go | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/mode.go b/mode.go index f64f576..2da1e6d 100644 --- a/mode.go +++ b/mode.go @@ -6,7 +6,7 @@ // Constants for protocols. const ( - ModeStart = iota + ModeStart = Mode(iota) PushPull PubSub ReqRep @@ -14,5 +14,16 @@ Bus Pair ModeNNG + Shm ModeEnd ) + +// type deliver +type td int + +const ( + // as server active + agent = td(iota) + // as client passive + coactee +) -- Gitblit v1.8.0