Skip to content

Commit

Permalink
switch to new sled's API
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime2 committed Aug 21, 2019
1 parent 43e56dc commit ab83eb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store_sled.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl DAGstore for SledStore {
fn set_event(&mut self, e: Event) -> Result<()> {
let key = e.hash.clone().to_vec();
let e_bytes = serialize(&e)?;
self.event.set(key, e_bytes)?;
self.event.insert(key, e_bytes)?;
if self.sync {
self.event.flush()?;
}
Expand All @@ -59,7 +59,7 @@ impl DAGstore for SledStore {
fn set_flag_table(&mut self, ex: &EventHash, ft: FlagTable) -> Result<()> {
let key = ex.clone().to_vec();
let e_bytes = serialize(&ft)?;
self.flag_table.set(key, e_bytes)?;
self.flag_table.insert(key, e_bytes)?;
if self.sync {
self.flag_table.flush()?;
}
Expand Down

0 comments on commit ab83eb4

Please sign in to comment.