mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-09-18 19:41:48 +02:00
remove console.log calls
This commit is contained in:
@@ -94,10 +94,6 @@ export class Relay {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.sendQueued();
|
this.sendQueued();
|
||||||
|
|
||||||
if (import.meta.env.DEV) {
|
|
||||||
console.info(`Relay: ${this.url} connected`);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
this.ws.onclose = () => {
|
this.ws.onclose = () => {
|
||||||
this.onClose.next(this);
|
this.onClose.next(this);
|
||||||
@@ -106,10 +102,6 @@ export class Relay {
|
|||||||
this.ejectTimer();
|
this.ejectTimer();
|
||||||
this.ejectTimer = undefined;
|
this.ejectTimer = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (import.meta.env.DEV) {
|
|
||||||
console.info(`Relay: ${this.url} disconnected`);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
this.ws.onmessage = this.handleMessage.bind(this);
|
this.ws.onmessage = this.handleMessage.bind(this);
|
||||||
}
|
}
|
||||||
@@ -144,9 +136,6 @@ export class Relay {
|
|||||||
|
|
||||||
private sendQueued() {
|
private sendQueued() {
|
||||||
if (this.connected) {
|
if (this.connected) {
|
||||||
if (import.meta.env.DEV) {
|
|
||||||
console.info(`Relay: ${this.url} sending ${this.queue.length} queued messages`);
|
|
||||||
}
|
|
||||||
for (const message of this.queue) {
|
for (const message of this.queue) {
|
||||||
this.send(message);
|
this.send(message);
|
||||||
}
|
}
|
||||||
|
@@ -247,9 +247,7 @@ class RelayScoreboardService {
|
|||||||
|
|
||||||
const relayScoreboardService = new RelayScoreboardService();
|
const relayScoreboardService = new RelayScoreboardService();
|
||||||
|
|
||||||
relayScoreboardService.loadStats().then(() => {
|
relayScoreboardService.loadStats();
|
||||||
console.log("Loaded relay scoreboard stats");
|
|
||||||
});
|
|
||||||
|
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
relayScoreboardService.saveStats();
|
relayScoreboardService.saveStats();
|
||||||
|
Reference in New Issue
Block a user