Add retry for thunks

This commit is contained in:
Jon Staab
2024-10-17 11:56:13 -07:00
parent d00bc64ffd
commit 96bc07c739
6 changed files with 45 additions and 12 deletions
+1 -1
View File
@@ -57,7 +57,7 @@
const onSubmit = async ({content, ...params}: EventContent) => {
const tags = [...params.tags, ...remove($pubkey!, pubkeys).map(tagPubkey)]
const template = createEvent(DIRECT_MESSAGE, {content, tags})
const thunk = await sendWrapped({template, pubkeys, delay: 60000})
const thunk = await sendWrapped({template, pubkeys, delay: 2000})
thunks.update(assoc(thunk.thunks[0].event.id, thunk))
}