Skip to content

Commit

Permalink
fix: ignore errors on heads exchange failures
Browse files Browse the repository at this point in the history
  • Loading branch information
saul-jb committed Oct 16, 2023
1 parent 91536e8 commit f532862
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/replicator/bootstrap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ export class BootstrapReplicator extends Playable {
}

private async handle ({ stream, connection }: { stream: Stream, connection: Connection }): Promise<void> {
await this.exchange(stream, connection.remotePeer, this.options.reverseSync)
try {
await this.exchange(stream, connection.remotePeer, this.options.reverseSync)
} catch (error) {
// Ignore
}
}

private async bootstrap (): Promise<void> {
Expand Down

0 comments on commit f532862

Please sign in to comment.