From 1adf8d263062af5d4c308983bf02b54652b9e94f Mon Sep 17 00:00:00 2001 From: Arnaud Date: Thu, 10 Apr 2025 09:34:30 +0200 Subject: [PATCH] Log warning when the resubscription interval is more than 300 seconds --- ethers/providers/jsonrpc/subscriptions.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethers/providers/jsonrpc/subscriptions.nim b/ethers/providers/jsonrpc/subscriptions.nim index 263ddec..6ce0e02 100644 --- a/ethers/providers/jsonrpc/subscriptions.nim +++ b/ethers/providers/jsonrpc/subscriptions.nim @@ -156,7 +156,7 @@ proc new*(_: type JsonRpcSubscriptions, if resubscribeInterval > 0: if resubscribeInterval >= 300: - info "Resubscription interval greater than 300 seconds is useless for hardhat workaround", resubscribeInterval = resubscribeInterval + warn "Resubscription interval greater than 300 seconds is useless for hardhat workaround", resubscribeInterval = resubscribeInterval subscriptions.resubscribeFut = resubscribeWebsocketEventsOnTimeout(subscriptions)