diff options
| author | chrislu <chris.lu@gmail.com> | 2024-05-24 17:15:12 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-05-24 17:15:12 -0700 |
| commit | 364bb6c7b477d3794cbbdf9ddc6a80d5347ab3cc (patch) | |
| tree | 903f86fc911fffc00bf12b8be6fe1fa462180218 /unmaintained | |
| parent | ba98f02d021d42c106927e623c7c7222ace49921 (diff) | |
| download | seaweedfs-364bb6c7b477d3794cbbdf9ddc6a80d5347ab3cc.tar.xz seaweedfs-364bb6c7b477d3794cbbdf9ddc6a80d5347ab3cc.zip | |
avoid ticker leak
Diffstat (limited to 'unmaintained')
| -rw-r--r-- | unmaintained/stress_filer_upload/bench_filer_upload/bench_filer_upload.go | 1 | ||||
| -rw-r--r-- | unmaintained/stress_filer_upload/stress_filer_upload_actual/stress_filer_upload.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/unmaintained/stress_filer_upload/bench_filer_upload/bench_filer_upload.go b/unmaintained/stress_filer_upload/bench_filer_upload/bench_filer_upload.go index a41bf1da1..1767b04b2 100644 --- a/unmaintained/stress_filer_upload/bench_filer_upload/bench_filer_upload.go +++ b/unmaintained/stress_filer_upload/bench_filer_upload/bench_filer_upload.go @@ -66,6 +66,7 @@ func main() { go func() { ticker := time.NewTicker(1000 * time.Millisecond) + defer ticker.Stop() var lastTime time.Time var counter, size int64 diff --git a/unmaintained/stress_filer_upload/stress_filer_upload_actual/stress_filer_upload.go b/unmaintained/stress_filer_upload/stress_filer_upload_actual/stress_filer_upload.go index 83df54dc3..afcd51917 100644 --- a/unmaintained/stress_filer_upload/stress_filer_upload_actual/stress_filer_upload.go +++ b/unmaintained/stress_filer_upload/stress_filer_upload_actual/stress_filer_upload.go @@ -72,6 +72,7 @@ func main() { go func() { ticker := time.NewTicker(500 * time.Millisecond) + defer ticker.Stop() var lastTime time.Time var counter, size int64 |
