mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-30 18:13:54 +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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
i.req.Context().Context = ctx
|
||||||
|
|
||||||
repoPath, err := getRepoPath(i.req)
|
repoPath, err := getRepoPath(i.req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user