提交 e00f903c 作者: Steven Allen

return background context instead of nil

License: MIT
Signed-off-by: 's avatarSteven Allen <steven@stebalien.com>
上级 a17f8c0e
......@@ -70,7 +70,7 @@ func (c *Context) Context() context.Context {
n, err := c.GetNode()
if err != nil {
log.Debug("error getting node: ", err)
return nil
return context.Background()
}
return n.Context()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论