MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / put

Method put

src/class_objectProcessorQueue.py:13–18  ·  view source on GitHub ↗
(self, item, block = True, timeout = None)

Source from the content-addressed store, hash-verified

11 self.curSize = 0 # in Bytes. We maintain this to prevent nodes from flooing us with objects which take up too much memory. If this gets too big we'll sleep before asking for further objects.
12
13 def put(self, item, block = True, timeout = None):
14 while self.curSize >= self.maxSize:
15 time.sleep(1)
16 with self.sizeLock:
17 self.curSize += len(item[1])
18 Queue.Queue.put(self, item, block, timeout)
19
20 def get(self, block = True, timeout = None):
21 try:

Callers 15

__init__Method · 0.80
checkackdataMethod · 0.80
processgetpubkeyMethod · 0.80
processpubkeyMethod · 0.80
processmsgMethod · 0.80
processbroadcastMethod · 0.80
sendMessagesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected