1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-29 01:12:24 +08:00

set the root context at the earlist possible moment

This commit is contained in:
Brian Tiger Chow
2015-01-30 15:32:42 -08:00
parent cbed858993
commit c7f922b5fc

View File

@ -219,6 +219,7 @@ func (i *cmdInvocation) Parse(ctx context.Context, args []string) error {
if err != nil {
return err
}
i.req.Context().Context = ctx
repoPath, err := getRepoPath(i.req)
if err != nil {