MCPcopy Create free account
hub / github.com/Boris-code/feapder / del_proxy

Method del_proxy

feapder/network/proxy_pool/proxy_pool.py:61–69  ·  view source on GitHub ↗

@summary: 删除代理 --------- @param proxy: ip:port

(self, proxy)

Source from the content-addressed store, hash-verified

59 raise Exception("获取代理失败", e)
60
61 def del_proxy(self, proxy):
62 """
63 @summary: 删除代理
64 ---------
65 @param proxy: ip:port
66 """
67 if proxy in self.proxy_queue.queue:
68 self.proxy_queue.queue.remove(proxy)
69 metrics.emit_counter("invalid", 1, classify="proxy")

Callers

nothing calls this directly

Calls 2

removeMethod · 0.80
emit_counterMethod · 0.80

Tested by

no test coverage detected