Skip to content

Commit 94e3dfc

Browse files
authored
[Bugfix] Fix Go routine leak (#1149)
1 parent 6dfb485 commit 94e3dfc

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- (Feature) Respect ToBeCleanedServers in Agency
1212
- (Improvement) Unify K8S Error Handling
1313
- (Feature) Remove stuck Pods
14+
- (Bugfix) Fix Go routine leak
1415

1516
## [1.2.19](https://github.com/arangodb/kube-arangodb/tree/1.2.19) (2022-10-05)
1617
- (Bugfix) Prevent changes when UID is wrong

pkg/util/timer/after.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ func After(duration time.Duration) <-chan time.Time {
2929
defer close(r)
3030

3131
tc := time.NewTimer(duration)
32-
defer func() {
33-
// Cleanup channel
34-
for range tc.C {
35-
36-
}
37-
}()
3832
defer tc.Stop()
3933

4034
r <- <-tc.C

0 commit comments

Comments
 (0)