feat(mount): don't give up on error
Instead of giving up when a single datastore fails, operate on all datastores first. That way: * If one datastore doesn't support disk usage, we can at least return our best estimate for the ones that do. * If one datastore fails to sync, we won't fail to sync the others. * If one datastore refuses to close, we'll close the others. Etc. Also: * Drop xerrors. We already need go 1.13 elsewhere. * Use uber's multierr. It's much simpler than hashicorps (and is already a dependency through zap, fx, etc.).
Showing
... | ... | @@ -4,9 +4,9 @@ require ( |
github.com/google/uuid v1.1.1 | ||
github.com/ipfs/go-ipfs-delay v0.0.0-20181109222059-70721b86a9a8 | ||
github.com/jbenet/goprocess v0.0.0-20160826012719-b497e2f366b8 | ||
github.com/kr/pretty v0.1.0 // indirect | ||
go.uber.org/multierr v1.4.0 | ||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7 | ||
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 | ||
) | ||
go 1.12 | ||
go 1.13 |
Please register or sign in to comment