MCPcopy
hub / github.com/pyload/pyload / forward

Method forward

module/plugins/hooks/ClickNLoad.py:81–90  ·  view source on GitHub ↗
(self, source, destination, queue=False)

Source from the content-addressed store, hash-verified

79 @lock
80 @threaded
81 def forward(self, source, destination, queue=False):
82 if queue:
83 old_ids = set(pack.pid for pack in self.pyload.api.getCollector())
84
85 forward(source, destination)
86
87 if queue:
88 new_ids = set(pack.pid for pack in self.pyload.api.getCollector())
89 for id in new_ids - old_ids:
90 self.pyload.api.pushToQueue(id)
91
92 @threaded
93 def proxy(self):

Callers 1

_serverMethod · 0.95

Calls 3

forwardFunction · 0.90
getCollectorMethod · 0.45
pushToQueueMethod · 0.45

Tested by

no test coverage detected