porbleme of sync resolved
This commit is contained in:
@@ -5,8 +5,6 @@ import threading
|
||||
import time
|
||||
from typing import Union
|
||||
|
||||
from playwright.sync_api import sync_playwright
|
||||
|
||||
import params
|
||||
from params import PROXY_SERVER, PROXY_PASSWORD
|
||||
from pojo.ReserveResultPojo import ReserveResultPojo, PublishType
|
||||
@@ -33,7 +31,7 @@ def get_random_wait_time() -> float:
|
||||
|
||||
class Tls(threading.local):
|
||||
def __init__(self) -> None:
|
||||
self.playwright = sync_playwright().start()
|
||||
self.playwright = params.SINGLE_PLAYWRIGHT_INSTANCE
|
||||
|
||||
|
||||
class CommandorPage:
|
||||
|
||||
Reference in New Issue
Block a user