1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 03:19:47 +08:00

Add context to coreunix.Cat argument

License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
This commit is contained in:
rht
2015-10-04 23:10:43 +07:00
parent f70846fe89
commit 6ae0973e1f
8 changed files with 11 additions and 10 deletions

View File

@ -67,7 +67,7 @@ func cat(ctx context.Context, node *core.IpfsNode, paths []string) ([]io.Reader,
readers := make([]io.Reader, 0, len(paths))
length := uint64(0)
for _, fpath := range paths {
read, err := coreunix.Cat(node, fpath)
read, err := coreunix.Cat(ctx, node, fpath)
if err != nil {
return nil, 0, err
}