Skip to content

Commit

Permalink
fix: use get-result for in-tx replace
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Adossi <vadossi@cosmonic.com>
  • Loading branch information
vados-cosmonic committed Jun 28, 2024
1 parent 5f1de35 commit fc83170
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion wit/couchbase/transactions.wit
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ interface transactions {
/// Replace a document, inside a transaction
tx-document-replace: func(
tx: tx-token,
old: document,
old: document-get-result,
new: document,
) -> result<document-get-result, tx-error>;

Expand Down
4 changes: 2 additions & 2 deletions wit/deps.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[couchbase]
path = "couchbase"
sha256 = "f09e802f48d9239c2584fc782b1db9b872393af2e550598d3a6efbd5dacde070"
sha512 = "b0b722ec3d047ba63932a1ebb657a0ea3fd3163428cb3d0d273ca67a27809f8c315aaab93b8b3edcb46757dc801e5b16961973a9de787e33c4df2d740aada844"
sha256 = "b9d4d7505b29d03f4952cf4845195f728070af4de248e8c6a01807879165dd32"
sha512 = "24b8d81c71a4da20f3881a4a5d10a323dfbe73484b471f89514aa05596022bfb3624c05c2eb11600d976fa58d47f7872daaf9f913d74c13dbad272255603304f"

[keyvalue]
path = "keyvalue"
Expand Down
2 changes: 1 addition & 1 deletion wit/deps/couchbase/transactions.wit
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ interface transactions {
/// Replace a document, inside a transaction
tx-document-replace: func(
tx: tx-token,
old: document,
old: document-get-result,
new: document,
) -> result<document-get-result, tx-error>;

Expand Down

0 comments on commit fc83170

Please sign in to comment.