Skip to content

Commit

Permalink
Renamed connections to total_connections to avoid confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed Jul 11, 2023
1 parent 8a3db8e commit 50399a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/metrics/brain-metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class BrainMetrics extends Metrics {
this.snapshotInProgress = true;

await this.brain.set(`metrics:${namespace}`, {
connections: this.connections.connections.size,
total_connections: this.connections.connections.size,
});

this.snapshotInProgress = false;
Expand Down
2 changes: 1 addition & 1 deletion src/pusher/metrics/brain-metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class PusherBrainMetrics extends BrainMetrics {
this.snapshotInProgress = true;

await this.brain.set(`metrics:${namespace}`, {
connections: this.connections.connections.size,
total_connections: this.connections.connections.size,
channels: [...this.connections.channels].map(([channel, connections]) => ({
channel,
connections: connections.size,
Expand Down

0 comments on commit 50399a9

Please sign in to comment.