mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-03 14:13:10 +00:00
Moar logging
This commit is contained in:
parent
6fcae702c5
commit
9e4834f1b4
@ -175,8 +175,11 @@ proc new*(_: type JsonRpcSubscriptions,
|
||||
subscriptions
|
||||
|
||||
method close*(subscriptions: PollingSubscriptions) {.async.} =
|
||||
echo "Cancelling subscription polling..."
|
||||
await subscriptions.polling.cancelAndWait()
|
||||
echo "Calling Provider.close..."
|
||||
await procCall JsonRpcSubscriptions(subscriptions).close()
|
||||
echo "Close done."
|
||||
|
||||
method subscribeBlocks(subscriptions: PollingSubscriptions,
|
||||
onBlock: BlockHandler):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user