summaryrefslogtreecommitdiffstats
path: root/modules/graceful/context.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/graceful/context.go')
-rw-r--r--modules/graceful/context.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/graceful/context.go b/modules/graceful/context.go
index 9d955329a4..b9d975a1d5 100644
--- a/modules/graceful/context.go
+++ b/modules/graceful/context.go
@@ -26,7 +26,7 @@ func NewChannelContext(done <-chan struct{}, err error) *ChannelContext {
// Deadline returns the time when work done on behalf of this context
// should be canceled. There is no Deadline for a ChannelContext
func (ctx *ChannelContext) Deadline() (deadline time.Time, ok bool) {
- return
+ return deadline, ok
}
// Done returns the channel provided at the creation of this context.