From 577575a43063480beb18db50f703f8197e645d17 Mon Sep 17 00:00:00 2001 From: zikaeroh <48577114+zikaeroh@users.noreply.github.com> Date: Tue, 26 May 2020 23:40:29 -0700 Subject: [PATCH] Actually fix typo --- internal/server/metrics.go | 2 +- internal/server/server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/server/metrics.go b/internal/server/metrics.go index 7e2092d..cfd60c6 100644 --- a/internal/server/metrics.go +++ b/internal/server/metrics.go @@ -20,7 +20,7 @@ var ( Help: "Total number of clients.", }) - metricreceived = promauto.NewCounter(prometheus.CounterOpts{ + metricReceived = promauto.NewCounter(prometheus.CounterOpts{ Namespace: "codies", Subsystem: "codies", Name: "received_total", diff --git a/internal/server/server.go b/internal/server/server.go index c50c5b3..be956f7 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -289,7 +289,7 @@ func (r *Room) HandleConn(playerID uuid.UUID, nickname string, c *websocket.Conn } r.lastSeen.Store(time.Now()) - metricRecieved.Inc() + metricReceived.Inc() if err := r.handleNote(playerID, ¬e); err != nil { log.Println("error handling note:", err)