set the root context at the earlist possible moment
Brian Tiger Chow committed
Jan 30, 2015 at 15:32 UTC
c7f922b5fce9830cf2af47be0c2bccd7679da92e
1 file changed
+1
cmd/ipfs/main.go
+1
@@ -219,6 +219,7 @@ func (i *cmdInvocation) Parse(ctx context.Context, args []string) error {
219
if err != nil {
220
return err
221
}
222
+ i.req.Context().Context = ctx
223
224
repoPath, err := getRepoPath(i.req)
225
if err != nil {