MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / _set_proxy

Method _set_proxy

asyncpg/connection.py:1792–1798  ·  view source on GitHub ↗
(self, proxy)

Source from the content-addressed store, hash-verified

1790 return _reset_query
1791
1792 def _set_proxy(self, proxy):
1793 if self._proxy is not None and proxy is not None:
1794 # Should not happen unless there is a bug in `Pool`.
1795 raise exceptions.InterfaceError(
1796 'internal asyncpg error: connection is already proxied')
1797
1798 self._proxy = proxy
1799
1800 def _check_listeners(self, listeners, listener_type):
1801 if listeners:

Callers 2

__init__Method · 0.80
_detachMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected