cennznet / api-nft

Tracks NFTs on CENNZnet
https://cennznet.js.org/api-nft/
Apache License 2.0
0 stars 0 forks source link

add timeout #26

Closed KarishmaBothara closed 2 years ago

KarishmaBothara commented 2 years ago

Closes https://github.com/cennznet/api-nft/issues/15

From cloud watch, appears that having timeout will make it wait for a while before it throws No response received from RPC endpoint in ${this.#timeout / 1000}s`

ken-futureverse commented 2 years ago

the timeout part looks good, but there is another change in src/scanner/utils/fetchNFTBlockNumberForRange.ts, what are they for @KarishmaBothara ?

KarishmaBothara commented 2 years ago

the timeout part looks good, but there is another change in src/scanner/utils/fetchNFTBlockNumberForRange.ts, what are they for @KarishmaBothara ?

just added formatting