update reset state function
@@ -261,11 +261,11 @@ where
pub fn reset_state(&mut self) -> Result<()> {
match &self.appinst {
Some(appinst) => {
- let mut pk_store = PKS::default();
- for (pk, _cursor) in self.pk_store.iter() {
- pk_store.insert(*pk, Cursor::new_at(appinst.rel().clone(), 0, 2_u32))?;
+ let mut key_store = Keys::default();
+ for (id, _cursor) in self.key_store.iter() {
+ key_store.insert_cursor(*id, Cursor::new_at(appinst.rel().clone(), 0, 2_u32))?;
}
- self.pk_store = pk_store;
+ self.key_store = key_store;
self.link_gen.reset(appinst.clone());
Ok(())
