One more attempt to fix compilation error.
This commit is contained in:
parent
278b91d6ce
commit
ab1a08084b
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue