Fixed form to from in line 981

There's a typo where it says form but it's supposed to be from.
This commit is contained in:
Dave 2022-03-21 14:31:43 +07:00 committed by GitHub
parent ee8dd0c4c3
commit 5ae42d093c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -978,7 +978,7 @@ class ProxyManager:
provider for provider in cf["proxy-providers"] provider for provider in cf["proxy-providers"]
if provider["type"] == Proxy_type or Proxy_type == 0 if provider["type"] == Proxy_type or Proxy_type == 0
] ]
logger.info("Downloading Proxies form %d Providers" % len(providrs)) logger.info("Downloading Proxies from %d Providers" % len(providrs))
proxes: Set[Proxy] = set() proxes: Set[Proxy] = set()
with ThreadPoolExecutor(len(providrs)) as executor: with ThreadPoolExecutor(len(providrs)) as executor:
@ -996,7 +996,7 @@ class ProxyManager:
@staticmethod @staticmethod
def download(provider, proxy_type: ProxyType) -> Set[Proxy]: def download(provider, proxy_type: ProxyType) -> Set[Proxy]:
logger.debug( logger.debug(
"Downloading Proxies form (URL: %s, Type: %s, Timeout: %d)" % "Downloading Proxies from (URL: %s, Type: %s, Timeout: %d)" %
(provider["url"], proxy_type.name, provider["timeout"])) (provider["url"], proxy_type.name, provider["timeout"]))
proxes: Set[Proxy] = set() proxes: Set[Proxy] = set()
with suppress(TimeoutError, exceptions.ConnectionError, with suppress(TimeoutError, exceptions.ConnectionError,