MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / __init__

Method __init__

src/throttle.py:13–22  ·  view source on GitHub ↗
(self, limit=0)

Source from the content-addressed store, hash-verified

11 maxChunkSize = 131072
12
13 def __init__(self, limit=0):
14 self.limit = limit
15 self.speed = 0
16 self.chunkSize = Throttle.maxChunkSize
17 self.txTime = int(time.time())
18 self.txLen = 0
19 self.total = 0
20 self.timer = threading.Event()
21 self.lock = threading.RLock()
22 self.resetChunkSize()
23
24 def recalculate(self):
25 with self.lock:

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 1

resetChunkSizeMethod · 0.95

Tested by

no test coverage detected