aboutsummaryrefslogtreecommitdiff
path: root/hotline/stats.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2024-06-24 16:23:56 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2024-06-24 16:23:56 -0700
commita2ef262a164fc735b9b8471ac0c8001eea2b9bf6 (patch)
tree9a24fc5949df1183895a125e09cb262cdf79b073 /hotline/stats.go
parenta55350daaf83498b7a237c027ad0dd2377f06fee (diff)
Refactoring, cleanup, test backfilling
Diffstat (limited to 'hotline/stats.go')
-rw-r--r--hotline/stats.go3
1 files changed, 3 insertions, 0 deletions
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
}