mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-13 04:08:08 +08:00
Check error from provideRoot
This commit is contained in:
parent
4dcd6ac681
commit
f5e6d687d4
@ -234,7 +234,9 @@ var provideRefRoutingCmd = &cmds.Command{
|
||||
// If node has a DHT client, provide immediately the supplied cids before
|
||||
// returning.
|
||||
for _, c := range cids {
|
||||
provideRoot(req.Context, dhtClient, c)
|
||||
if err = provideRoot(req.Context, dhtClient, c); err != nil {
|
||||
return fmt.Errorf("error providing root cid: %w", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user