Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-pousette committed Dec 25, 2024
1 parent 30113aa commit 24af37e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/programs/data/shared-log/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3236,6 +3236,9 @@ export class SharedLog<
replicas: minReplicas.getValue(this),
})
) {
deferredPromise.reject(
new Error("Failed to delete, is leader again"),
);
return;
}

Expand Down Expand Up @@ -3575,11 +3578,7 @@ export class SharedLog<
this.pruneDebouncedFn.delete(entryReplicated.hash);
await this._pendingDeletes
.get(entryReplicated.hash)
?.reject(
new Error(
"Failed to delete, is leader again. Closed: " + this.closed,
),
);
?.reject(new Error("Failed to delete, is leader again"));
this._requestIPruneSent.delete(entryReplicated.hash);
}
}
Expand Down

0 comments on commit 24af37e

Please sign in to comment.