[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [meek/master] Rename Expired to IsExpired.
commit 6e531bdb1ab9fc09d2f806a82a4b8b95b3ee8938
Author: David Fifield <david@xxxxxxxxxxxxxxx>
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)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits