mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Fix relay metrics
This commit is contained in:
parent
e50ba819b9
commit
c44347e9d1
1 changed files with 3 additions and 3 deletions
|
|
@ -10,7 +10,7 @@ import {
|
|||
|
||||
import { AppController } from '@/app.ts';
|
||||
import { relayInfoController } from '@/controllers/nostr/relay-info.ts';
|
||||
import { relayEventCounter, relayMessageCounter } from '@/metrics.ts';
|
||||
import { relayCountCounter, relayEventCounter, relayMessageCounter, relayReqCounter } from '@/metrics.ts';
|
||||
import * as pipeline from '@/pipeline.ts';
|
||||
import { RelayError } from '@/RelayError.ts';
|
||||
import { Storages } from '@/storages.ts';
|
||||
|
|
@ -42,7 +42,7 @@ function connectStream(socket: WebSocket) {
|
|||
function handleMsg(msg: NostrClientMsg) {
|
||||
switch (msg[0]) {
|
||||
case 'REQ':
|
||||
relayEventCounter.inc();
|
||||
relayReqCounter.inc();
|
||||
handleReq(msg);
|
||||
return;
|
||||
case 'EVENT':
|
||||
|
|
@ -53,7 +53,7 @@ function connectStream(socket: WebSocket) {
|
|||
handleClose(msg);
|
||||
return;
|
||||
case 'COUNT':
|
||||
relayEventCounter.inc();
|
||||
relayCountCounter.inc();
|
||||
handleCount(msg);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue