Skip to content

Commit

Permalink
Fix wrong comment about SKIP locked usage
Browse files Browse the repository at this point in the history
SKIP LOCKED is only used to avoid unnecessary waiting for locks, not to implement exactly-once delivery
  • Loading branch information
ekzyis committed Jan 1, 2025
1 parent e28b2a9 commit eb65eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/resolvers/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ const resolvers = {
if (!me) {
throw new GqlAuthenticationError()
}
// make sure each invoice is only returned once via visibility timeouts and SKIP LOCKED
// make sure each invoice is only returned once via visibility timeouts
return await models.$queryRaw`
WITH failed AS (
UPDATE "Invoice"
Expand Down

0 comments on commit eb65eb5

Please sign in to comment.