git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
60b086d
)
skiplist nodes expire after an hour
author
Forrest Voight
<forrest@forre.st>
Tue, 19 Jul 2011 14:50:12 +0000 (10:50 -0400)
committer
Forrest Voight
<forrest@forre.st>
Tue, 19 Jul 2011 14:50:12 +0000 (10:50 -0400)
p2pool/util/skiplist.py
patch
|
blob
|
history
diff --git
a/p2pool/util/skiplist.py
b/p2pool/util/skiplist.py
index
300e95b
..
e57eeda
100644
(file)
--- a/
p2pool/util/skiplist.py
+++ b/
p2pool/util/skiplist.py
@@
-1,4
+1,4
@@
-from p2pool.util import math
+from p2pool.util import math, expiring_dict
class Base(object):
def finalize(self, sol):
@@
-6,7
+6,7
@@
class Base(object):
class SkipList(Base):
def __init__(self):
- self.skips = {}
+ self.skips = expiring_dict.ExpiringDict(3600)
def __call__(self, start, *args, **kwargs):
updates = {}