Skip to content

Commit

Permalink
refactor: remove notification retries
Browse files Browse the repository at this point in the history
as notifications are coming from multiple data sources, if a data source is retrying, then notifications will take longer to load.
  • Loading branch information
Prithpal-Sooriya committed Jul 18, 2024
1 parent 21f490f commit f8f0dae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export type ContentfulResult = {

async function fetchFromContentful(
url: string,
retries = 3,
retries = 1,
retryDelay = 1000,
): Promise<ContentfulResult | null> {
let lastError: Error | null = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ export async function makeApiCall<T>(
endpoint: string,
method: 'POST' | 'DELETE',
body: T,
retries = 3,
retries = 1,
retryDelay = 1000,
): Promise<Response> {
const options: RequestInit = {
Expand Down

0 comments on commit f8f0dae

Please sign in to comment.