From cbe4085996627536d80cee40cbadc6bf748afbb7 Mon Sep 17 00:00:00 2001 From: sandwich <299465+dskvr@users.noreply.github.com> Date: Mon, 12 Feb 2024 18:07:05 +0000 Subject: [PATCH] hotfix: missing rtt --- apps/nocapd/src/classes/Worker.js | 6 +++--- packages/publisher/src/kinds/Kind30066.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/nocapd/src/classes/Worker.js b/apps/nocapd/src/classes/Worker.js index 221c21c0..7a98b6aa 100644 --- a/apps/nocapd/src/classes/Worker.js +++ b/apps/nocapd/src/classes/Worker.js @@ -270,13 +270,13 @@ export class NWWorker { const {group, retries} = this.relayMeta.get(relay) const format = i => Math.ceil(i) if(group === 'online') - return format(this.priority/10) + return format(this.priority/2) if(group === 'unchecked') return format(this.priority) if(group === 'expired'){ - if(retries > 16) + if(retries > 30) return format(this.priority*10) - else if(retries > 12) + else if(retries > 16) return format(this.priority*8) else if(retries > 8) return format(this.priority*7) diff --git a/packages/publisher/src/kinds/Kind30066.js b/packages/publisher/src/kinds/Kind30066.js index 1e6120a2..31fbed6d 100644 --- a/packages/publisher/src/kinds/Kind30066.js +++ b/packages/publisher/src/kinds/Kind30066.js @@ -39,7 +39,7 @@ export class Kind30066 extends Publisher { static generateTags(data){ let tags = [] - const isRtt = data?.connect?.data === true + const isRtt = data?.connect?.data === true || data?.connect?.duration > 0 const isDns = Object.keys(data?.dns || {})?.length > 0 const isInfo = Object.keys(data?.info?.data || {})?.length > 0 const isGeo = Object.keys(data?.geo?.data || {})?.length > 0