mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
refactor: use correct Stickynotes, and not legacy Debug
This commit is contained in:
parent
1a1adc1654
commit
60ebff45d5
1 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import Debug from '@soapbox/stickynotes/debug';
|
||||
import { Stickynotes } from '@soapbox/stickynotes';
|
||||
import TTLCache from '@isaacs/ttlcache';
|
||||
import {
|
||||
NostrClientCLOSE,
|
||||
|
|
@ -30,7 +30,7 @@ const limiter = new TTLCache<string, number>();
|
|||
/** Connections for metrics purposes. */
|
||||
const connections = new Set<WebSocket>();
|
||||
|
||||
const debug = Debug('ditto:relay');
|
||||
const console = new Stickynotes('ditto:relay');
|
||||
|
||||
/** Set up the Websocket connection. */
|
||||
function connectStream(socket: WebSocket, ip: string | undefined) {
|
||||
|
|
@ -144,7 +144,7 @@ function connectStream(socket: WebSocket, ip: string | undefined) {
|
|||
send(['OK', event.id, false, e.message]);
|
||||
} else {
|
||||
send(['OK', event.id, false, 'error: something went wrong']);
|
||||
debug(e);
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue