mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-24 11:57:44 +08:00
set the root context at the earlist possible moment
This commit is contained in:
parent
cbed858993
commit
c7f922b5fc
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user