We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f493a5 commit 488469dCopy full SHA for 488469d
packages/ipns/src/ipns/republisher.ts
@@ -101,6 +101,10 @@ export class IPNSRepublisher {
101
}
102
103
if (metadata.refresh) {
104
+ if (!shouldRefresh(created)) {
105
+ this.log.trace(`skipping record ${routingKey.toString()} within republish threshold`)
106
+ continue
107
+ }
108
recordsToRefresh.push({ routingKey, created })
109
continue
110
@@ -164,11 +168,6 @@ export class IPNSRepublisher {
164
168
165
169
166
170
167
- if (!shouldRefresh(created)) {
- this.log.trace(`skipping record ${routingKey.toString()} within republish threshold`)
- continue
- }
171
-
172
// Add job to queue to republish the existing record to all routers
173
queue.add(async () => {
174
try {
0 commit comments