@@ -5,8 +5,8 @@ use module_subscription_manager::Plan;
55use prometheus:: IntCounter ;
66use rayon:: iter:: { IntoParallelRefIterator , ParallelIterator } ;
77use spacetimedb_client_api_messages:: websocket:: {
8- ByteListLen , Compression , DatabaseUpdate , QueryUpdate , RowListBuilder as _, SingleQueryUpdate , TableUpdate ,
9- WebsocketFormat ,
8+ BuildableWebsocketFormat , ByteListLen , Compression , DatabaseUpdate , QueryUpdate , RowListBuilder as _,
9+ SingleQueryUpdate , TableUpdate ,
1010} ;
1111use spacetimedb_execution:: { pipelined:: PipelinedProject , Datastore , DeltaStore } ;
1212use spacetimedb_lib:: { metrics:: ExecutionMetrics , Identity } ;
@@ -96,7 +96,7 @@ impl MetricsRecorder for ExecutionCounters {
9696pub fn execute_plan < Tx , F > ( plan_fragments : & [ PipelinedProject ] , tx : & Tx ) -> Result < ( F :: List , u64 , ExecutionMetrics ) >
9797where
9898 Tx : Datastore + DeltaStore ,
99- F : WebsocketFormat ,
99+ F : BuildableWebsocketFormat ,
100100{
101101 let mut count = 0 ;
102102 let mut list = F :: ListBuilder :: default ( ) ;
@@ -134,7 +134,7 @@ pub fn collect_table_update<Tx, F>(
134134) -> Result < ( TableUpdate < F > , ExecutionMetrics ) >
135135where
136136 Tx : Datastore + DeltaStore ,
137- F : WebsocketFormat ,
137+ F : BuildableWebsocketFormat ,
138138{
139139 execute_plan :: < Tx , F > ( plan_fragments, tx) . map ( |( rows, num_rows, metrics) | {
140140 let empty = F :: List :: default ( ) ;
@@ -167,7 +167,7 @@ pub fn execute_plans<Tx, F>(
167167) -> Result < ( DatabaseUpdate < F > , ExecutionMetrics ) , DBError >
168168where
169169 Tx : Datastore + DeltaStore + Sync ,
170- F : WebsocketFormat ,
170+ F : BuildableWebsocketFormat ,
171171{
172172 plans
173173 . par_iter ( )
0 commit comments