diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2024-06-24 16:23:56 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2024-06-24 16:23:56 -0700 |
| commit | a2ef262a164fc735b9b8471ac0c8001eea2b9bf6 (patch) | |
| tree | 9a24fc5949df1183895a125e09cb262cdf79b073 /hotline/stats.go | |
| parent | a55350daaf83498b7a237c027ad0dd2377f06fee (diff) | |
Refactoring, cleanup, test backfilling
Diffstat (limited to 'hotline/stats.go')
| -rw-r--r-- | hotline/stats.go | 3 |
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 } |