diff --git a/xmr-btc/tests/harness/storage.rs b/xmr-btc/tests/harness/storage.rs index cfb8eceb..7b53c93b 100644 --- a/xmr-btc/tests/harness/storage.rs +++ b/xmr-btc/tests/harness/storage.rs @@ -14,6 +14,7 @@ impl Database where T: Serialize + DeserializeOwned, { + // TODO: serialize using lazy/one-time initlisation const LAST_STATE_KEY: &'static str = "latest_state"; pub fn open(path: &Path) -> Result { @@ -37,6 +38,7 @@ where .context("Could not write in the DB")? .context("Stored swap somehow changed, aborting saving")?; + // TODO: see if this can be done through sled config self.db .flush_async() .await