Skip to content

Commit

Permalink
hotfix: missing rtt
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Feb 12, 2024
1 parent 3b2eb7f commit cbe4085
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions apps/nocapd/src/classes/Worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion packages/publisher/src/kinds/Kind30066.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cbe4085

Please sign in to comment.