@@ -307,7 +307,7 @@ Example:
307
307
if len (req .Arguments ()) > 0 {
308
308
keys , err = pinLsKeys (req .Context (), req .Arguments (), typeStr , n )
309
309
} else {
310
- keys , err = pinLsAll (typeStr , n )
310
+ keys , err = pinLsAll (req . Context (), typeStr , n )
311
311
}
312
312
313
313
if err != nil {
@@ -539,7 +539,7 @@ func pinLsKeys(ctx context.Context, args []string, typeStr string, n *core.IpfsN
539
539
return keys , nil
540
540
}
541
541
542
- func pinLsAll (typeStr string , n * core.IpfsNode ) (map [string ]RefKeyObject , error ) {
542
+ func pinLsAll (ctx context. Context , typeStr string , n * core.IpfsNode ) (map [string ]RefKeyObject , error ) {
543
543
544
544
keys := make (map [string ]RefKeyObject )
545
545
@@ -557,7 +557,7 @@ func pinLsAll(typeStr string, n *core.IpfsNode) (map[string]RefKeyObject, error)
557
557
if typeStr == "indirect" || typeStr == "all" {
558
558
set := cid .NewSet ()
559
559
for _ , k := range n .Pinning .RecursiveKeys () {
560
- err := dag .EnumerateChildren (n . Context () , dag .GetLinksWithDAG (n .DAG ), k , set .Visit )
560
+ err := dag .EnumerateChildren (ctx , dag .GetLinksWithDAG (n .DAG ), k , set .Visit )
561
561
if err != nil {
562
562
return nil , err
563
563
}
0 commit comments