summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhost Walker <[email protected]>2023-09-10 12:52:01 +0300
committerGhost Walker <[email protected]>2023-09-10 12:52:01 +0300
commit51a4bf5412bd832079a72f98271b2eefb6148be2 (patch)
treecdd4223b1998923937dedf758dd6c16f78d25d8f
parentb5a87e86eebfc88d2019b1dcd64590b2bd4d9834 (diff)
Update sdnotify.go
-rw-r--r--internal/sdnotify/sdnotify.go2
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()