chore: fix typo

pull/3281/head
Audric Ackermann 4 months ago
parent fbc449e859
commit 946812a362
No known key found for this signature in database

@ -43,7 +43,7 @@ async function makeGroupMessageSubRequest(
const allTimestamps = uniqBy(compactedMessages, m => m.createAtNetworkTimestamp);
if (allTimestamps.length !== compactedMessages.length) {
throw new Error(
'tried to send batch request with messages having the same timestamp, and some platformn do not support this.'
'tried to send batch request with messages having the same timestamp, this is not supported on all platforms.'
);
}

@ -134,7 +134,7 @@ function mergeMultipleRetrieveResults(
// Convert the merged map back to an array
return Array.from(mapped.entries()).map(([namespace, messagesMap]) => ({
code: 200, // Assuming success code, adjust as needed
code: results.find(m => m.namespace === namespace)?.code || 200,
namespace,
messages: { messages: Array.from(messagesMap.values()) },
}));
@ -477,7 +477,7 @@ export class SwarmPolling {
})
);
window.log.info(
`SwarmPolling: pollNodeForKey of ${ed25519Str(pubkey)} namespaces: ${namespaces} returned ${resultsFromAllSnodesSettled.filter(m => m.status === 'fulfilled')}/${RETRIEVE_SNODES_COUNT} fulfilled promises`
`SwarmPolling: pollNodeForKey of ${ed25519Str(pubkey)} namespaces: ${namespaces} returned ${resultsFromAllSnodesSettled.filter(m => m.status === 'fulfilled').length}/${RETRIEVE_SNODES_COUNT} fulfilled promises`
);
resultsFromAllNamespaces = mergeMultipleRetrieveResults(
compact(

Loading…
Cancel
Save