@@ -216,7 +216,7 @@ impl<ChannelSigner: WriteableEcdsaChannelSigner, K: KVStore> Persist<ChannelSign
216216/// Read previously persisted [`ChannelMonitor`]s from the store. 
217217pub  fn  read_channel_monitors < K :  Deref ,  ES :  Deref ,  SP :  Deref > ( 
218218	kv_store :  K ,  entropy_source :  ES ,  signer_provider :  SP , 
219- )  -> io :: Result < Vec < ( BlockHash ,  ChannelMonitor < <SP :: Target  as  SignerProvider >:: Signer > ) > > 
219+ )  -> Result < Vec < ( BlockHash ,  ChannelMonitor < <SP :: Target  as  SignerProvider >:: Signer > ) > ,  io :: Error > 
220220where 
221221	K :: Target :  KVStore , 
222222	ES :: Target :  EntropySource  + Sized , 
@@ -403,7 +403,7 @@ where
403403/// documentation for [`MonitorUpdatingPersister`]. 
404404pub  fn  read_all_channel_monitors_with_updates < B :  Deref ,  F :  Deref  + Clone > ( 
405405		& self ,  broadcaster :  B ,  fee_estimator :  F , 
406- 	)  -> io :: Result < Vec < ( BlockHash ,  ChannelMonitor < <SP :: Target  as  SignerProvider >:: Signer > ) > > 
406+ 	)  -> Result < Vec < ( BlockHash ,  ChannelMonitor < <SP :: Target  as  SignerProvider >:: Signer > ) > ,  io :: Error > 
407407	where 
408408		ES :: Target :  EntropySource  + Sized , 
409409		SP :: Target :  SignerProvider  + Sized , 
@@ -435,7 +435,7 @@ where
435435/// function to accomplish this. Take care to limit the number of parallel readers. 
436436pub  fn  read_channel_monitor_with_updates < B :  Deref ,  F :  Deref  + Clone > ( 
437437		& self ,  broadcaster :  B ,  fee_estimator :  F ,  monitor_key :  String , 
438- 	)  -> io :: Result < ( BlockHash ,  ChannelMonitor < <SP :: Target  as  SignerProvider >:: Signer > ) > 
438+ 	)  -> Result < ( BlockHash ,  ChannelMonitor < <SP :: Target  as  SignerProvider >:: Signer > ) ,  io :: Error > 
439439	where 
440440		ES :: Target :  EntropySource  + Sized , 
441441		SP :: Target :  SignerProvider  + Sized , 
@@ -478,7 +478,7 @@ where
478478	/// Read a channel monitor. 
479479fn  read_monitor ( 
480480		& self ,  monitor_name :  & MonitorName , 
481- 	)  -> io :: Result < ( BlockHash ,  ChannelMonitor < <SP :: Target  as  SignerProvider >:: Signer > ) >  { 
481+ 	)  -> Result < ( BlockHash ,  ChannelMonitor < <SP :: Target  as  SignerProvider >:: Signer > ) ,  io :: Error >  { 
482482		let  outpoint:  OutPoint  = monitor_name. try_into ( ) ?; 
483483		let  mut  monitor_cursor = io:: Cursor :: new ( self . kv_store . read ( 
484484			CHANNEL_MONITOR_PERSISTENCE_NAMESPACE , 
@@ -525,7 +525,7 @@ where
525525	/// Read a channel monitor update. 
526526fn  read_monitor_update ( 
527527		& self ,  monitor_name :  & MonitorName ,  update_name :  & UpdateName , 
528- 	)  -> io :: Result < ChannelMonitorUpdate >  { 
528+ 	)  -> Result < ChannelMonitorUpdate ,  io :: Error >  { 
529529		let  update_bytes = self . kv_store . read ( 
530530			CHANNEL_MONITOR_UPDATE_PERSISTENCE_NAMESPACE , 
531531			monitor_name. as_str ( ) , 
@@ -550,7 +550,7 @@ where
550550/// updates. The updates that have an `update_id` less than or equal to than the stored monitor 
551551/// are deleted. The deletion can either be lazy or non-lazy based on the `lazy` flag; this will 
552552/// be passed to [`KVStore::remove`]. 
553- pub  fn  cleanup_stale_updates ( & self ,  lazy :  bool )  -> io :: Result < ( ) >  { 
553+ pub  fn  cleanup_stale_updates ( & self ,  lazy :  bool )  -> Result < ( ) ,  io :: Error >  { 
554554		let  monitor_keys = self . kv_store . list ( 
555555			CHANNEL_MONITOR_PERSISTENCE_NAMESPACE , 
556556			CHANNEL_MONITOR_PERSISTENCE_SUB_NAMESPACE , 
0 commit comments