MCPcopy Create free account
hub / github.com/ambianic/peerfetch / peer_error

Function peer_error

python/src/peerfetch/proxy.py:176–181  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

174
175 @peer.on(PeerEventType.Error)
176 def peer_error(err):
177 logger.exception('Peer error {}', err)
178 logger.warning('peerConnectionStatus {}', peerConnectionStatus)
179 # retry peer connection in a few seconds
180 # loop = asyncio.get_event_loop()
181 # loop.call_later(3, pnp_service_connect)
182
183 # remote peer tries to initiate connection
184 @peer.on(PeerEventType.Connection)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected