提交 f26d8c7b 作者: Jeromy

respect context cancellation in add

License: MIT
Signed-off-by: 's avatarJeromy <why@ipfs.io>
上级 8e505f29
......@@ -308,6 +308,9 @@ You can now refer to the added file in a gateway, like so:
bar.ShowBar = true
bar.ShowTimeLeft = true
}
case <-req.Context().Done():
res.SetError(req.Context().Err(), cmds.ErrNormal)
return
}
}
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论