streamline and improve benchmarks.

This commit is contained in:
fiatjaf
2023-12-22 06:57:23 -03:00
parent 83b6dd7ec3
commit 7adbd30799
4 changed files with 20 additions and 30 deletions

View File

@@ -269,6 +269,7 @@ export class AbstractRelay {
}
// this method simulates receiving a message from the websocket
// for testing purposes only
public _push(msg: string) {
this.incomingMessageQueue.enqueue(msg)
if (!this.queueRunning) {