From 36263e301416db18ed1d8cf61977c15c0b12e758 Mon Sep 17 00:00:00 2001 From: Anthony Buisset Date: Wed, 27 Sep 2023 18:26:42 +0200 Subject: [PATCH] Retry events when crypto quote fetch fail --- api/src/presentation/event_listeners/quote_syncer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/presentation/event_listeners/quote_syncer.rs b/api/src/presentation/event_listeners/quote_syncer.rs index 49a6eff4d4..0388080847 100644 --- a/api/src/presentation/event_listeners/quote_syncer.rs +++ b/api/src/presentation/event_listeners/quote_syncer.rs @@ -31,7 +31,7 @@ impl EventListener for Projector { .quote_service .fetch_conversion_rate(currency) .await - .map_err(SubscriberCallbackError::Discard)?; + .map_err(SubscriberCallbackError::Fatal)?; self.quotes_repository.insert(CryptoUsdQuote { currency: code,