From 1e84510c24b467de60f3938a365b5085457c50a3 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 7 Dec 2018 12:41:25 -0500 Subject: sd_daemon.WatchdogEnabled: Update example in doc comment The docs still used the used the pre-da323d620 (2017-01-18) notify function signature. --- sd_daemon/watchdog.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sd_daemon/watchdog.go b/sd_daemon/watchdog.go index be96970..05dc9f3 100644 --- a/sd_daemon/watchdog.go +++ b/sd_daemon/watchdog.go @@ -1,5 +1,5 @@ // Copyright 2016 CoreOS, Inc. -// Copyright 2016 Luke Shumaker +// Copyright 2016, 2018 Luke Shumaker // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ import ( // WatchdogEnabled returns how often the process is expected to send a // keep-alive notification to the service manager. // -// Notify(0, false, "WATCHDOG=1", nil) // send keep-alive notification +// Notification{State: "WATCHDOG=1"}.Send(false) // send keep-alive notification // // If unsetEnv is true, then (regardless of whether the function call // itself succeeds or not) it will unset the environmental variables -- cgit v1.2.3-54-g00ecf