Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
silasbw committed Dec 19, 2022
1 parent 293f245 commit 7c50233
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/resolve-celo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { AuthSigner, ServiceContext } from '@celo/identity/lib/odis/query'

import { NameResolver, NameResolutionResults, ResolutionKind } from './types'

const DEFAULT_NETWORK_TIMEOUT = 5_000

export class ResolveCelo implements NameResolver {
private federatedAttestationsContract: Contract
private authSigner: AuthSigner
Expand Down Expand Up @@ -37,7 +39,7 @@ export class ResolveCelo implements NameResolver {
serviceContext: ServiceContext
networkTimeout?: number
}) {
networkTimeout = networkTimeout ?? 10000
networkTimeout = networkTimeout ?? DEFAULT_NETWORK_TIMEOUT
const web3 = new Web3(
new Web3.providers.HttpProvider(providerUrl, { timeout: networkTimeout }),
)
Expand Down

0 comments on commit 7c50233

Please sign in to comment.