From: qydysky Date: Sat, 31 Oct 2020 09:43:06 +0000 (+0800) Subject: 89 X-Git-Tag: v0.1.6 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=73eb05df7a96e20231996ced20c3edab31e6410d;p=part%2F.git 89 --- 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