remove daemon node constructor
Juan Batiz-Benet committed
Nov 18, 2014 at 03:47 UTC
d3c9c5978e4216975ddaa98ce890662c93c76876
1 file changed
-6
cmd/ipfs2/daemon.go
-6
@@ -80,12 +80,6 @@ func daemonFunc(req cmds.Request) (interface{}, error) {
80
}
81
defer lock.Close()
82
83
- // setup function that constructs the context. we have to do it this way
84
- // to play along with how the Context works and thus not expose its internals
85
- req.Context().ConstructNode = func() (*core.IpfsNode, error) {
86
- return node, nil
87
- }
88
-
83
addr, err := ma.NewMultiaddr(cfg.Addresses.API)
84
if err != nil {
85
return nil, err