Skip to content

Commit

Permalink
feat(ArNSNamesCache): reduce retry delay to 5 seconds
Browse files Browse the repository at this point in the history
I don't want requests blocked too long waiting for retries.
  • Loading branch information
djwhitt committed Nov 20, 2024
1 parent 02cfccf commit 1113488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolution/arns-names-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { connect } from '@permaweb/aoconnect';

const DEFAULT_CACHE_TTL = config.ARNS_NAMES_CACHE_TTL_SECONDS * 1000;
const DEFAULT_MAX_RETRIES = 3;
const DEFAULT_RETRY_DELAY = 60 * 1000; // 1 minute
const DEFAULT_RETRY_DELAY = 5 * 1000; // 5 seconds

export class ArNSNamesCache {
private log: winston.Logger;
Expand Down

0 comments on commit 1113488

Please sign in to comment.