diff options
author | Ghost Walker <[email protected]> | 2023-09-10 12:52:01 +0300 |
---|---|---|
committer | Ghost Walker <[email protected]> | 2023-09-10 12:52:01 +0300 |
commit | 51a4bf5412bd832079a72f98271b2eefb6148be2 (patch) | |
tree | cdd4223b1998923937dedf758dd6c16f78d25d8f | |
parent | b5a87e86eebfc88d2019b1dcd64590b2bd4d9834 (diff) |
Update sdnotify.go
-rw-r--r-- | internal/sdnotify/sdnotify.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/sdnotify/sdnotify.go b/internal/sdnotify/sdnotify.go index 114284ee..b82e0dd4 100644 --- a/internal/sdnotify/sdnotify.go +++ b/internal/sdnotify/sdnotify.go @@ -86,7 +86,7 @@ func SdNotify(state State) (bool, error) { return true, nil } -func StartWatchdog(interval int, stopCh chan struct{}) { +func StartWatchdog(interval int, stopCh <-chan struct{}) { go func() { ticker := time.NewTicker(time.Duration(interval) * time.Second) defer ticker.Stop() |