From df903ebfa57095b7946cc6382490a59e0048f867 Mon Sep 17 00:00:00 2001 From: Patrick Peng Sun Date: Mon, 29 May 2017 21:09:11 +1000 Subject: [PATCH] session and procedure states are separated --- sessionManager.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sessionManager.go b/sessionManager.go index a0bbc26..cb267eb 100644 --- a/sessionManager.go +++ b/sessionManager.go @@ -11,7 +11,8 @@ type openIDSession struct { openID string //who is this? count int // number of message in the Queue, channel jobs chan InWechatMsg - data openIDSessionData //session data, that needs to be saved to disk + data openIDSessionData //session data, that needs to be saved to disk + states map[string]chatState //map from procedure to its current states } type workDone struct {