fix: add 10s timeout for AP message send

This commit is contained in:
Julian Lam
2024-12-16 22:38:10 -05:00
parent d734ce4911
commit 25d6ef432b

View File

@@ -330,6 +330,7 @@ async function sendMessage(uri, id, type, payload, attempts = 1) {
'content-type': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
},
body: payload,
timeout: 10000, // configurable?
});
if (String(response.statusCode).startsWith('2')) {