Commit 1fdd22a1 authored by David Vorick's avatar David Vorick

check for failed cache update at worker startup

parent d24f780f
Pipeline #152237770 passed with stages
in 29 minutes and 18 seconds
......@@ -239,5 +239,8 @@ func (r *Renter) newWorker(hostPubKey types.SiaPublicKey) (*worker, error) {
// Get the worker cache set up before returning the worker. This prevents a
// race condition in some tests.
if w.staticCache() == nil {
return nil, errors.New("unable to build a cache for the worker")
return w, nil
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment