File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,8 @@ impl State {
89
89
local_store : local:: Store :: new ( registry) ,
90
90
keypairs : keypairs:: KeypairState :: default ( ) ,
91
91
prices : api:: PricesState :: new ( config. state . clone ( ) ) ,
92
- oracle : oracle:: OracleState :: new ( ) ,
93
92
exporter : exporter:: ExporterState :: new ( ) ,
93
+ oracle : oracle:: OracleState :: default ( ) ,
94
94
transactions : transactions:: TransactionsState :: new (
95
95
config
96
96
. primary_network
@@ -109,8 +109,8 @@ impl State {
109
109
local_store : local:: Store :: new ( registry) ,
110
110
keypairs : keypairs:: KeypairState :: default ( ) ,
111
111
prices : api:: PricesState :: new ( config) ,
112
- oracle : oracle:: OracleState :: new ( ) ,
113
112
exporter : exporter:: ExporterState :: new ( ) ,
113
+ oracle : oracle:: OracleState :: default ( ) ,
114
114
transactions : transactions:: TransactionsState :: new ( 100 ) ,
115
115
}
116
116
}
Original file line number Diff line number Diff line change @@ -173,18 +173,11 @@ impl Default for Config {
173
173
}
174
174
}
175
175
176
+ #[ derive( Default ) ]
176
177
pub struct OracleState {
177
178
data : RwLock < Data > ,
178
179
}
179
180
180
- impl OracleState {
181
- pub fn new ( ) -> Self {
182
- Self {
183
- data : Default :: default ( ) ,
184
- }
185
- }
186
- }
187
-
188
181
#[ async_trait:: async_trait]
189
182
pub trait Oracle {
190
183
async fn sync_global_store ( & self , network : Network ) -> Result < ( ) > ;
You can’t perform that action at this time.
0 commit comments