One more attempt to fix compilation error.

This commit is contained in:
cheatfate 2020-02-26 16:46:21 +02:00 committed by zah
parent 278b91d6ce
commit ab1a08084b
2 changed files with 14 additions and 14 deletions

View File

@ -75,7 +75,7 @@ when networkBackend in [libp2p, libp2pDaemon]:
when networkBackend == libp2p:
import
libp2p/standard_setup, libp2p_backend, peer_pool, peerinfo
libp2p/standard_setup, libp2p_backend, libp2p/peerinfo, peer_pool
export
libp2p_backend, peer_pool, peerinfo

View File

@ -31,7 +31,7 @@ proc fetchAncestorBlocksFromPeer(
responseHandler(b)
except CatchableError as err:
debug "Error while fetching ancestor blocks",
err = err.msg, root = rec.root, peer
err = err.msg, root = rec.root, peer = peer
when networkBackend == libp2p:
@ -48,7 +48,7 @@ when networkBackend == libp2p:
responseHandler(b)
except CatchableError as err:
debug "Error while fetching ancestor blocks",
err = err.msg, root = rec.root, peer = peer.info
err = err.msg, root = rec.root, peer = peer
finally:
if not(isNil(peer)):
network.peerPool.release(peer)