catch and log
This commit is contained in:
parent
0ce7c92020
commit
28a473740c
1 changed files with 93 additions and 88 deletions
|
|
@ -68,6 +68,7 @@ const pubToLastUpdate = {}
|
|||
*/
|
||||
const onOpenForPubFeedPair = ([pub, feed]) =>
|
||||
debounce(async data => {
|
||||
try {
|
||||
// did invalidate
|
||||
if (pubToLastIncoming[pub] !== feed) {
|
||||
return
|
||||
|
|
@ -160,6 +161,10 @@ const onOpenForPubFeedPair = ([pub, feed]) =>
|
|||
...getPubToFeed(),
|
||||
[pub]: decryptedMsgs
|
||||
})
|
||||
} catch (err) {
|
||||
logger.warn(`error inside pub to pk-feed pair: ${pub} -- ${feed}`)
|
||||
logger.error(err)
|
||||
}
|
||||
}, 750)
|
||||
|
||||
const react = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue