Skip to content

Commit

Permalink
Retry events when crypto quote fetch fail
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyBuisset committed Sep 28, 2023
1 parent 9c16b68 commit 36263e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/presentation/event_listeners/quote_syncer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl EventListener<Event> for Projector {
.quote_service
.fetch_conversion_rate(currency)
.await
.map_err(SubscriberCallbackError::Discard)?;
.map_err(SubscriberCallbackError::Fatal)?;

self.quotes_repository.insert(CryptoUsdQuote {
currency: code,
Expand Down

0 comments on commit 36263e3

Please sign in to comment.