Skip to content

Commit

Permalink
fix: Use as_bytes instead of as_ref on NodeId.
Browse files Browse the repository at this point in the history
  • Loading branch information
0xOmarA committed Apr 30, 2024
1 parent 1e960e9 commit 99db4b7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ mod system_wasm_buffers {
let node_id = self.kv_store.id.as_node_id();
let handle = unsafe {
kv_store::kv_store_open_entry(
node_id.as_ref().as_ptr(),
node_id.as_ref().len(),
node_id.as_bytes().as_ptr(),
node_id.as_bytes().len(),
self.key.as_ptr(),
self.key.len(),
LockFlags::MUTABLE.bits(),
Expand Down

0 comments on commit 99db4b7

Please sign in to comment.