summaryrefslogtreecommitdiff
path: root/ext/kv/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/kv/lib.rs')
-rw-r--r--ext/kv/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/kv/lib.rs b/ext/kv/lib.rs
index 8782fbec6..f17ed55e3 100644
--- a/ext/kv/lib.rs
+++ b/ext/kv/lib.rs
@@ -519,7 +519,7 @@ async fn op_kv_atomic_write<DBH>(
checks: Vec<V8KvCheck>,
mutations: Vec<V8KvMutation>,
enqueues: Vec<V8Enqueue>,
-) -> Result<bool, AnyError>
+) -> Result<Option<String>, AnyError>
where
DBH: DatabaseHandler + 'static,
{
@@ -585,7 +585,7 @@ where
let result = db.atomic_write(atomic_write).await?;
- Ok(result)
+ Ok(result.map(|res| hex::encode(res.versionstamp)))
}
// (prefix, start, end)