maxThread to 10

This commit is contained in:
2022-04-27 17:29:55 +02:00
parent 8e27702836
commit b01e026f1c
+2 -2
View File
@@ -78,7 +78,7 @@ def start_book(start_slot_number, end_slot_number, store=0):
contacts = excel_reader.read_contacts()
global current_sim_position
current_sim_position = 0
with ThreadPoolExecutor(max_workers=5) as executor:
with ThreadPoolExecutor(max_workers=10) as executor:
for modem in modem_list:
current_sim_position = current_sim_position + 1
try:
@@ -123,4 +123,4 @@ def get_proxy(phone_number):
if __name__ == '__main__':
# 修改起始行,结束行, 第三个参数store等于0的时候是随机,传入1的时候是总店
start_book(3, 3, store=0)
start_book(32, 32, store=0)