[tor-commits] [meek/master] Rename Expired to IsExpired.
dcf at torproject.org
dcf at torproject.org
Thu May 8 03:28:50 UTC 2014
commit 6e531bdb1ab9fc09d2f806a82a4b8b95b3ee8938
Author: David Fifield <david at bamsoftware.com>
Date: Wed May 7 20:11:57 2014 -0700
Rename Expired to IsExpired.
---
meek-server/meek-server.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meek-server/meek-server.go b/meek-server/meek-server.go
index c24b8cc..933c742 100644
--- a/meek-server/meek-server.go
+++ b/meek-server/meek-server.go
@@ -54,7 +54,7 @@ func (session *Session) Touch() {
session.LastSeen = time.Now()
}
-func (session *Session) Expired() bool {
+func (session *Session) IsExpired() bool {
return time.Since(session.LastSeen) > maxSessionStaleness
}
@@ -178,7 +178,7 @@ func (state *State) ExpireSessions() {
time.Sleep(maxSessionStaleness / 2)
state.lock.Lock()
for sessionId, session := range state.sessionMap {
- if session.Expired() {
+ if session.IsExpired() {
// log.Printf("deleting expired session %q", sessionId)
session.Or.Close()
delete(state.sessionMap, sessionId)
More information about the tor-commits
mailing list