From 7a2daf1b9977368950e4b8810141a5864b7d6322 Mon Sep 17 00:00:00 2001 From: dskvr Date: Tue, 19 Mar 2024 08:01:25 +0100 Subject: [PATCH] bump nwcache v --- apps/nocapd/package.json | 2 +- apps/nocapd/src/classes/Worker.js | 2 +- packages/nwcache/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/nocapd/package.json b/apps/nocapd/package.json index 951893e2..9f266481 100644 --- a/apps/nocapd/package.json +++ b/apps/nocapd/package.json @@ -10,7 +10,7 @@ "@nostrwatch/controlflow": "^0.1.0", "@nostrwatch/logger": "^0.0.4", "@nostrwatch/nocap": "^0.4.2", - "@nostrwatch/nwcache": "^0.1.0", + "@nostrwatch/nwcache": "^0.1.2", "@nostrwatch/publisher": "^0.4.1", "@nostrwatch/seed": "^0.0.2", "@nostrwatch/utils": "^0.0.3", diff --git a/apps/nocapd/src/classes/Worker.js b/apps/nocapd/src/classes/Worker.js index 05f2f85f..6a3dd1a6 100644 --- a/apps/nocapd/src/classes/Worker.js +++ b/apps/nocapd/src/classes/Worker.js @@ -177,7 +177,7 @@ export class NWWorker { const url = job.data.relay if(typeof url !== 'string') { delete this.jobs[job.id] - return this.log.debug(`drainSmart(): url must be string! ${url}: ${typeof url}`) + return this.log.warn(`drainSmart(): url must be string! ${url}: ${typeof url}`) } const online = (await this.rcache.relay.get.one(url))?.online === true const expired = await this.isExpired(url, timestring(job.timestamp, "ms")) diff --git a/packages/nwcache/package.json b/packages/nwcache/package.json index cc465613..fb9b3361 100644 --- a/packages/nwcache/package.json +++ b/packages/nwcache/package.json @@ -1,6 +1,6 @@ { "name": "@nostrwatch/nwcache", - "version": "0.1.1", + "version": "0.1.2", "type": "module", "main": "index.js", "license": "MIT",