Skip to content

Commit 9bebca3

Browse files
committed
recordsToRefresh -> keysToRepublish
1 parent 488469d commit 9bebca3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/ipns/src/ipns/republisher.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class IPNSRepublisher {
8989

9090
try {
9191
const recordsToRepublish: Array<{ routingKey: Uint8Array, record: IPNSRecord }> = []
92-
const recordsToRefresh: Array<Omit<ListResult, 'record'>> = []
92+
const keysToRepublish: Array<Uint8Array> = []
9393

9494
// Find all records using the localStore.list method
9595
for await (const { routingKey, record, metadata, created } of this.localStore.list(options)) {
@@ -105,7 +105,7 @@ export class IPNSRepublisher {
105105
this.log.trace(`skipping record ${routingKey.toString()} within republish threshold`)
106106
continue
107107
}
108-
recordsToRefresh.push({ routingKey, created })
108+
keysToRepublish.push(routingKey)
109109
continue
110110
}
111111

@@ -157,7 +157,7 @@ export class IPNSRepublisher {
157157
}
158158
}, options)
159159
}
160-
for (const { routingKey, created } of recordsToRefresh) {
160+
for (const routingKey of keysToRepublish) {
161161
// resolve the latest record
162162
let latestRecord: IPNSRecord
163163
try {

0 commit comments

Comments
 (0)