2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-30 00:33:57 +00:00
restic/internal/ui/progress
greatroar 2dafda9164 ui/progress: Load both values in a single Lock/Unlock
We always need both values, except in a test, so we don't need to lock
twice and risk scheduling in between.

Also, removed the resetting in Done. This copied a mutex, which isn't
allowed. Static analyzers tend to trip over that.
2022-10-25 07:55:24 +02:00
..
counter_test.go golangci-lint: replace deprecated golint with revive 2022-03-28 22:33:17 +02:00
counter.go ui/progress: Load both values in a single Lock/Unlock 2022-10-25 07:55:24 +02:00