File tree 2 files changed +3
-6
lines changed
infra/repositories/onchain_repository
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ pub struct PublisherEntry {
31
31
pub struct Publisher {
32
32
pub publisher : String ,
33
33
pub website_url : String ,
34
- pub last_updated_timestamp : u64 ,
34
+ pub last_updated_timestamp : Option < u64 > ,
35
35
pub r#type : u32 ,
36
36
pub nb_feeds : u32 ,
37
37
pub daily_updates : u32 ,
Original file line number Diff line number Diff line change @@ -229,15 +229,12 @@ async fn get_publisher_with_components(
229
229
. collect ( ) ;
230
230
231
231
// Execute all futures concurrently and collect results
232
- let components = try_join_all ( component_futures)
233
- . await
234
- . map_err ( |_| InfraError :: PublishersNotFound ) ?;
232
+ let components = try_join_all ( component_futures) . await ?;
235
233
236
234
let last_updated_timestamp = components
237
235
. iter ( )
238
236
. map ( |component| component. last_updated_timestamp )
239
- . max ( )
240
- . ok_or ( InfraError :: PublishersNotFound ) ?;
237
+ . max ( ) ;
241
238
242
239
let publisher = Publisher {
243
240
publisher : publisher. name . clone ( ) ,
You can’t perform that action at this time.
0 commit comments