aboutsummaryrefslogtreecommitdiff
path: root/examples/demo1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/demo1.rs')
-rw-r--r--examples/demo1.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/demo1.rs b/examples/demo1.rs
index 40f9562..48d7c2c 100644
--- a/examples/demo1.rs
+++ b/examples/demo1.rs
@@ -114,8 +114,10 @@ impl WALStore for WALStoreTest {
Ok(logfiles.into_iter())
}
- fn apply_payload(&mut self, payload: WALBytes) -> Result<(), ()> {
- println!("apply_payload(payload={})", std::str::from_utf8(&payload).unwrap());
+ fn apply_payload(&mut self, payload: WALBytes, wal_off: WALPos) -> Result<(), ()> {
+ println!("apply_payload(payload={}, wal_off={})",
+ std::str::from_utf8(&payload).unwrap(),
+ wal_off);
Ok(())
}
}