Update ts/session/sending/MessageSender.ts

Co-authored-by: Audric Ackermann <audric.bilb@gmail.com>
pull/1170/head
Mikunj Varsani 5 years ago committed by GitHub
parent 3b8b9f7306
commit 88f87c0a70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -40,7 +40,7 @@ export async function send(
const data = wrapEnvelope(envelope);
// pRetry counts retries after making the first call.
// So a retry couunt of 3 means you make a request then if it fails you make another request 3 times until it succeeds.
// So a retry count of 3 means you make a request then if it fails you make another request 3 times until it succeeds.
// This means a total of 4 requests are being sent, where as for us when we want 3 retries we only want 3 requests sent.
return pRetry(
async () => lokiMessageAPI.sendMessage(device, data, timestamp, ttl),

Loading…
Cancel
Save