From a2ef262a164fc735b9b8471ac0c8001eea2b9bf6 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Mon, 24 Jun 2024 16:23:56 -0700 Subject: Refactoring, cleanup, test backfilling --- hotline/stats.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hotline/stats.go') diff --git a/hotline/stats.go b/hotline/stats.go index bc06a69..d1a3c5f 100644 --- a/hotline/stats.go +++ b/hotline/stats.go @@ -1,6 +1,7 @@ package hotline import ( + "sync" "time" ) @@ -14,4 +15,6 @@ type Stats struct { DownloadCounter int UploadCounter int Since time.Time + + sync.Mutex } -- cgit