Skip to content

Commit

Permalink
feat(ui): retry image fetching wait 1s then exponential backoff 1.5x
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyg committed Oct 16, 2024
1 parent e85e345 commit ed0815b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/store/ConversationStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,8 @@ export class ConversationStore {
() => this.fileStorageClient.downloadFile(image.storageEntryHash as Uint8Array),
{
retries: 10,
factor: 1,
minTimeout: 1000,
factor: 1.5,
onFailedAttempt: (e) => {
console.error(`Failed to download file from hash ${encodeHashToBase64(image.storageEntryHash as Uint8Array)}`, e);
},
Expand Down

0 comments on commit ed0815b

Please sign in to comment.