提交 d3c9c597 作者: Juan Batiz-Benet

remove daemon node constructor

上级 7a4491ad
......@@ -80,12 +80,6 @@ func daemonFunc(req cmds.Request) (interface{}, error) {
}
defer lock.Close()
// setup function that constructs the context. we have to do it this way
// to play along with how the Context works and thus not expose its internals
req.Context().ConstructNode = func() (*core.IpfsNode, error) {
return node, nil
}
addr, err := ma.NewMultiaddr(cfg.Addresses.API)
if err != nil {
return nil, err
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论