@@ -8,7 +8,7 @@ use commonware_runtime::{
88 tokio as tokio_runtime, BufferPooler , Clock , Listener , Metrics , Network , Runner , SinkOf ,
99 Spawner , Storage , StreamOf ,
1010} ;
11- use commonware_storage:: qmdb:: sync:: Target ;
11+ use commonware_storage:: { mmr , qmdb:: sync:: Target } ;
1212use commonware_stream:: utils:: codec:: { recv_frame, send_frame} ;
1313use commonware_sync:: {
1414 any, crate_version, current,
@@ -106,7 +106,7 @@ async fn maybe_add_operations<DB, E>(
106106 config : & Config ,
107107) -> Result < ( ) , Box < dyn std:: error:: Error > >
108108where
109- DB : Syncable ,
109+ DB : Syncable < Family = mmr :: Family > ,
110110 E : Storage + Clock + Metrics + RngCore ,
111111{
112112 let now = context. current ( ) ;
@@ -155,7 +155,7 @@ async fn handle_get_sync_target<DB>(
155155 request : wire:: GetSyncTargetRequest ,
156156) -> Result < wire:: GetSyncTargetResponse < Key > , Error >
157157where
158- DB : Syncable ,
158+ DB : Syncable < Family = mmr :: Family > ,
159159{
160160 state. request_counter . inc ( ) ;
161161
@@ -186,7 +186,7 @@ async fn handle_get_operations<DB>(
186186 request : wire:: GetOperationsRequest ,
187187) -> Result < wire:: GetOperationsResponse < DB :: Operation , Key > , Error >
188188where
189- DB : Syncable ,
189+ DB : Syncable < Family = mmr :: Family > ,
190190{
191191 state. request_counter . inc ( ) ;
192192 request. validate ( ) ?;
@@ -263,7 +263,7 @@ async fn handle_message<DB>(
263263 message : wire:: Message < DB :: Operation , Key > ,
264264) -> wire:: Message < DB :: Operation , Key >
265265where
266- DB : Syncable ,
266+ DB : Syncable < Family = mmr :: Family > ,
267267{
268268 let request_id = message. request_id ( ) ;
269269 match message {
@@ -317,7 +317,7 @@ async fn recv_loop<DB, E>(
317317 response_sender : mpsc:: Sender < wire:: Message < DB :: Operation , Key > > ,
318318 client_addr : SocketAddr ,
319319) where
320- DB : Syncable + Send + Sync + ' static ,
320+ DB : Syncable < Family = mmr :: Family > + Send + Sync + ' static ,
321321 DB :: Operation : Read + Send ,
322322 <DB :: Operation as Read >:: Cfg : commonware_codec:: IsUnit ,
323323 E : Metrics + Network + Spawner ,
@@ -367,7 +367,7 @@ async fn handle_client<DB, E>(
367367 client_addr : SocketAddr ,
368368) -> Result < ( ) , Box < dyn std:: error:: Error > >
369369where
370- DB : Syncable + Send + Sync + ' static ,
370+ DB : Syncable < Family = mmr :: Family > + Send + Sync + ' static ,
371371 DB :: Operation : Read + Send ,
372372 <DB :: Operation as Read >:: Cfg : commonware_codec:: IsUnit ,
373373 E : Storage + Clock + Metrics + Network + Spawner ,
@@ -408,7 +408,7 @@ async fn initialize_database<DB, E>(
408408 context : & mut E ,
409409) -> Result < DB , Box < dyn std:: error:: Error > >
410410where
411- DB : Syncable ,
411+ DB : Syncable < Family = mmr :: Family > ,
412412 E : RngCore ,
413413{
414414 info ! ( "starting {} database" , DB :: name( ) ) ;
@@ -446,7 +446,7 @@ async fn run_helper<DB, E>(
446446 database : DB ,
447447) -> Result < ( ) , Box < dyn std:: error:: Error > >
448448where
449- DB : Syncable + Send + Sync + ' static ,
449+ DB : Syncable < Family = mmr :: Family > + Send + Sync + ' static ,
450450 DB :: Operation : Read + Send ,
451451 <DB :: Operation as Read >:: Cfg : commonware_codec:: IsUnit ,
452452 E : Storage + Clock + Metrics + Network + Spawner + RngCore + Clone ,
0 commit comments