Log warning when the resubscription interval is more than 300 seconds

This commit is contained in:
Arnaud 2025-04-10 09:34:30 +02:00
parent 18121b20c3
commit 1adf8d2630
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663

View File

@ -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)