Skip to content

Commit

Permalink
memory leak fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Mar 16, 2024
1 parent 2be50ab commit 0d9ee15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/nocapd/src/classes/Worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class NWWorker {

async work(job){
this.log.debug(`${this.id()}: work(): ${job.id} checking ${job.data?.relay} for ${this.opts?.checks?.enabled || "unknown checks"}`)
const failure = (err) => { this.log.info(`Could not run ${this.pubkey} check for ${job.data.relay}: ${err.message}`) }
const failure = (err) => { this.log.debug(`Could not run ${this.pubkey} check for ${job.data.relay}: ${err.message}`) }
try {
const { relay:url } = job.data
const nocap = new Nocap(url, this.nocapOpts)
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 @@ -21,6 +21,7 @@ let rcache
let config

const maybeAnnounce = async () => {
log.info(`maybeAnnounce()`)
const map = {
"publisher.kinds": "kinds",
"nocapd.checks.options.timeout": "timeouts",
Expand Down

0 comments on commit 0d9ee15

Please sign in to comment.