mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-10 05:52:20 +08:00
Add context to coreunix.Cat argument
License: MIT Signed-off-by: rht <rhtbot@gmail.com>
This commit is contained in:
@ -138,7 +138,7 @@ func DirectAddCat(data []byte, conf testutil.LatencyConfig) error {
|
||||
return err
|
||||
}
|
||||
|
||||
readerCatted, err := coreunix.Cat(catter, added)
|
||||
readerCatted, err := coreunix.Cat(ctx, catter, added)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -84,7 +84,7 @@ func benchCat(b *testing.B, data []byte, conf testutil.LatencyConfig) error {
|
||||
}
|
||||
|
||||
b.StartTimer()
|
||||
readerCatted, err := coreunix.Cat(catter, added)
|
||||
readerCatted, err := coreunix.Cat(ctx, catter, added)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ func RunSupernodeBootstrappedAddCat(data []byte, conf testutil.LatencyConfig) er
|
||||
return err
|
||||
}
|
||||
|
||||
readerCatted, err := coreunix.Cat(catter, keyAdded)
|
||||
readerCatted, err := coreunix.Cat(ctx, catter, keyAdded)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ func RunThreeLeggedCat(data []byte, conf testutil.LatencyConfig) error {
|
||||
return err
|
||||
}
|
||||
|
||||
readerCatted, err := coreunix.Cat(catter, added)
|
||||
readerCatted, err := coreunix.Cat(ctx, catter, added)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user