diff --git a/mutiny-core/src/ldkstorage.rs b/mutiny-core/src/ldkstorage.rs index 9cb401d13..cad3fe2c9 100644 --- a/mutiny-core/src/ldkstorage.rs +++ b/mutiny-core/src/ldkstorage.rs @@ -111,7 +111,7 @@ impl MutinyNodePersister { spawn(async move { // Sleep before persisting to give chance for the manager to be persisted sleep(50).await; - match persist_local_storage(&storage, &key, &object, Some(version), &logger).await { + match persist_local_storage(&storage, &key, object, Some(version), &logger).await { Ok(()) => { log_debug!(logger, "Persisted channel monitor: {update_id:?}"); @@ -721,15 +721,15 @@ pub struct MonitorUpdateIdentifier { pub monitor_update_id: MonitorUpdateId, } -async fn persist_local_storage( +async fn persist_local_storage( storage: &impl MutinyStorage, key: &str, - object: &W, + object: Vec, version: Option, logger: &MutinyLogger, ) -> Result<(), lightning::io::Error> { storage - .set_data_async(key, object.encode(), version) + .set_data_async(key, object, version) .map_err(|e| { match e { MutinyError::PersistenceFailed { source } => {