Skip to content

Commit 4df2e67

Browse files
sebasti810distractedm1nd
authored andcommitted
fix: wasm ci
1 parent 36f460b commit 4df2e67

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

  • crates

crates/node_types/wasm-lightclient/src/tests/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ mod tests {
211211
// should separate these cases.
212212
assert!(events.len() > 0);
213213
assert!(events.iter().any(|e| e == "Updated DA height to 100"));
214-
assert!(events.iter().any(|e| e == "Starting backwards sync at height 100"));
214+
assert!(events.iter().any(|e| e == "Starting historical sync at height 100"));
215215
assert!(events.iter().any(|e| e == "Starting recursive verification at height 100"));
216216
assert!(
217217
events.iter().any(|e| e
@@ -317,7 +317,7 @@ mod tests {
317317
let events = received_events.lock().unwrap();
318318

319319
// Should complete without finding any epochs
320-
assert!(events.iter().any(|e| e.contains("Backwards sync complete")));
320+
assert!(events.iter().any(|e| e.contains("Historical sync complete")));
321321
assert!(events.iter().any(|e| e.contains("found epoch: false")));
322322
}
323323
}

crates/storage/src/sled.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ impl TreeWriter for SledConnection {
258258
for (node_key, node) in node_batch.nodes() {
259259
let key = node_key.encode_to_bytes().unwrap();
260260
let value = node.encode_to_bytes().unwrap();
261-
tx_node.insert(key, value.as_slice()).unwrap();
261+
tx_node.insert(key, value).unwrap();
262262
}
263263

264264
for ((version, key_hash), value) in node_batch.values() {
@@ -274,7 +274,7 @@ impl TreeWriter for SledConnection {
274274
let mut fkey = Vec::with_capacity(32 + version_bytes.len());
275275
fkey.extend_from_slice(&value_key);
276276
fkey.extend_from_slice(&version_bytes);
277-
tx_values.insert(fkey, encoded_value.as_slice()).unwrap();
277+
tx_values.insert(fkey, encoded_value).unwrap();
278278
}
279279

280280
Ok::<(), sled::transaction::ConflictableTransactionError<anyhow::Error>>(())

0 commit comments

Comments
 (0)