diff options
| author | Adam Soltys <[email protected]> | 2022-12-22 09:51:53 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-12-22 09:51:53 -0800 |
| commit | 728ac80f9cc8a3268bdced6339f58936bd69648b (patch) | |
| tree | 2eb1881c02ebd783a495911cf5c83661d204fb45 /lib/nostr.js | |
| parent | 316039601e5170d6f753cf09eac92a94176b4756 (diff) | |
| download | coinos-server-728ac80f9cc8a3268bdced6339f58936bd69648b.tar.gz coinos-server-728ac80f9cc8a3268bdced6339f58936bd69648b.zip | |
prettier
Diffstat (limited to 'lib/nostr.js')
| -rw-r--r-- | lib/nostr.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/nostr.js b/lib/nostr.js index c75955bd..53c8d7d1 100644 --- a/lib/nostr.js +++ b/lib/nostr.js @@ -44,7 +44,10 @@ pool.on("event", async (relay, sub, ev) => { await redis.sAdd(pubkey, ev.id); await redis.set(`ev:${ev.id}`, JSON.stringify(ev)); - store.timeouts[pubkey] = setTimeout(() => (store.fetching[pubkey] = false), 100); + store.timeouts[pubkey] = setTimeout( + () => (store.fetching[pubkey] = false), + 100 + ); } } catch (e) { console.log(e); |
