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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user