File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ async fn main() -> Result<()> {
5050 ) ) ;
5151
5252 // Create price tracker
53- let price_tracker = Arc :: new ( PriceTracker :: new ( pool. clone ( ) , provider . clone ( ) ) ) ;
53+ let price_tracker = Arc :: new ( PriceTracker :: new ( pool. clone ( ) ) ) ;
5454
5555 // Start price tracking
5656 let price_tracker_clone = price_tracker. clone ( ) ;
Original file line number Diff line number Diff line change @@ -7,17 +7,15 @@ use log::error;
77
88pub struct PriceTracker < P > {
99 pool : Arc < Pool < P > > ,
10- provider : Provider < P > ,
1110 current_price : RwLock < f64 > ,
1211 current_tick : RwLock < i32 > ,
1312 last_update : RwLock < u64 > ,
1413}
1514
1615impl < P : JsonRpcClient + ' static > PriceTracker < P > {
17- pub fn new ( pool : Arc < Pool < P > > , provider : Provider < P > ) -> Self {
16+ pub fn new ( pool : Arc < Pool < P > > ) -> Self {
1817 Self {
1918 pool,
20- provider,
2119 current_price : RwLock :: new ( 0.0 ) ,
2220 current_tick : RwLock :: new ( 0 ) ,
2321 last_update : RwLock :: new ( 0 ) ,
You can’t perform that action at this time.
0 commit comments