Skip to content

Commit 7035d49

Browse files
committed
fix: test
1 parent abf9161 commit 7035d49

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/ipns/src/index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -763,9 +763,11 @@ class DefaultIPNS implements IPNS {
763763
}
764764

765765
// Queue the first republish immediately
766-
republishRecords().catch(err => {
767-
this.log.error('error republishing', err)
768-
})
766+
this.timeout = setTimeout(() => {
767+
republishRecords().catch(err => {
768+
this.log.error('error republishing', err)
769+
})
770+
}, 0)
769771
}
770772

771773
private shouldRepublish (ipnsRecord: IPNSRecord, created: Date): boolean {

0 commit comments

Comments
 (0)