Skip to content

Commit

Permalink
update packages, attempt to address concurrency issues without queue
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Mar 16, 2024
1 parent a214abb commit 5a35426
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/nocapd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@nostrwatch/nocap": "^0.4.1",
"@nostrwatch/nwcache": "^0.0.2",
"@nostrwatch/publisher": "^0.3.2",
"@nostrwatch/seed": "^0.0.1",
"@nostrwatch/seed": "^0.0.2",
"@nostrwatch/utils": "^0.0.3",
"bluebird": "3.7.2",
"chalk": "5.3.0",
Expand Down
1 change: 1 addition & 0 deletions apps/nocapd/src/classes/Worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ export class NWWorker {
await Promise.allSettled(promises)
record.url = url
if(result?.open?.data) record.online = result.open.data
await delay(100)
const $id = await this.rcache.relay.patch(record)
return $id
}
Expand Down
1 change: 1 addition & 0 deletions apps/nocapd/src/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ const stop = async() => {
export const Nocapd = async () => {
header()
config = await loadConfig().catch( (err) => { log.err(err); process.exit() } )
console.log(config)
await delay(2000)
rcache = relaycache(process.env.NWCACHE_PATH || './.lmdb')
await maybeAnnounce()
Expand Down
2 changes: 1 addition & 1 deletion packages/seed/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nostrwatch/seed",
"version": "0.0.1",
"version": "0.0.2",
"type": "module",
"main": "src/index.js",
"license": "MIT",
Expand Down

0 comments on commit 5a35426

Please sign in to comment.