[06.02.20] callable issue
This commit is contained in:
parent
9b8240b014
commit
232d3ca0c8
@ -1,11 +1,14 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
from pricing.collector import collector
|
import src.pricing.collector as collector
|
||||||
|
|
||||||
|
def callCollector(args):
|
||||||
|
collector(args)
|
||||||
|
|
||||||
if __name__=='__main__':
|
if __name__=='__main__':
|
||||||
# Dynamically create new child for each currency
|
# Dynamically create new child for each currency
|
||||||
currencies = [ "btc_gbp" ]
|
currencies = [ "btc_gbp" ]
|
||||||
|
|
||||||
for i in range(len(currencies)):
|
for i in range(len(currencies)):
|
||||||
Thread(target = collector("btc_gbp")).start()
|
Thread(target=callCollector, args=(1,)).start()
|
||||||
Loading…
x
Reference in New Issue
Block a user