1- use crate :: backtest:: BuiltBlockData ;
2- use crate :: primitives:: OrderId ;
31use crate :: {
42 backtest:: {
53 fetch:: data_source:: { BlockRef , DataSource , DatasourceData } ,
6- OrdersWithTimestamp ,
4+ BuiltBlockData , OrdersWithTimestamp ,
75 } ,
86 primitives:: {
97 serialize:: { RawBundle , RawOrder , RawShareBundle , TxEncoding } ,
10- Order , SimValue ,
8+ Order , OrderId , SimValue ,
119 } ,
1210} ;
1311use alloy_primitives:: I256 ;
@@ -19,8 +17,7 @@ use bigdecimal::{
1917use eyre:: WrapErr ;
2018use reth_primitives:: { Bytes , B256 , U256 , U64 } ;
2119use sqlx:: postgres:: PgPool ;
22- use std:: collections:: HashSet ;
23- use std:: { ops:: Mul , str:: FromStr } ;
20+ use std:: { collections:: HashSet , ops:: Mul , str:: FromStr } ;
2421use time:: { OffsetDateTime , PrimitiveDateTime } ;
2522use tracing:: trace;
2623use uuid:: Uuid ;
@@ -333,7 +330,8 @@ impl RelayDB {
333330 . fetch_all ( & self . pool )
334331 . await ?;
335332
336- let mut included_orders = Vec :: new ( ) ;
333+ let mut included_orders =
334+ Vec :: with_capacity ( included_bundles. len ( ) + included_sbundles. len ( ) ) ;
337335 for ( bundle_uuid, ) in included_bundles {
338336 let order_id = OrderId :: Bundle ( bundle_uuid) ;
339337 included_orders. push ( order_id) ;
0 commit comments