Skip to content

Commit 8a66fd1

Browse files
committed
chore: add bound
1 parent 32f3033 commit 8a66fd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clients/createClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export function createClient(parameters: ClientConfig): Client {
225225

226226
const blockTime = chain?.blockTime ?? 12_000
227227
const pollingInterval =
228-
parameters.pollingInterval ?? Math.floor(blockTime / 3)
228+
parameters.pollingInterval ?? Math.max(Math.floor(blockTime / 3), 500)
229229
const cacheTime = parameters.cacheTime ?? pollingInterval
230230

231231
const account = parameters.account

0 commit comments

Comments
 (0)