From 73eb05df7a96e20231996ced20c3edab31e6410d Mon Sep 17 00:00:00 2001 From: qydysky Date: Sat, 31 Oct 2020 17:43:06 +0800 Subject: [PATCH] 89 --- session/Session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session/Session.go b/session/Session.go index 979704e..0de4574 100644 --- a/session/Session.go +++ b/session/Session.go @@ -44,7 +44,7 @@ func (s *session) Set(key string) (val string) { s.session_stop <- true - if s.session_rand >= s.SumInTimeout {s.session_rand = 1}else{s.session_rand += 1} + if s.session_rand >= s.SumInSecond {s.session_rand = 1}else{s.session_rand += 1} t := strconv.FormatInt(s.session_rand, 10) s.session_ks[t] = key -- 2.39.2