return background context instead of nil
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
Steven Allen committed
Jan 20, 2018 at 00:31 UTC
e00f903c82d39bb75d6739bdc09e0fc1c248a856
1 file changed
+1
-1
commands/request.go
+1
-1
@@ -70,7 +70,7 @@ func (c *Context) Context() context.Context {
70
n, err := c.GetNode()
71
if err != nil {
72
log.Debug("error getting node: ", err)
73
- return nil
73
+ return context.Background()
74
}
75
76
return n.Context()