16739: implement review feedback.
[arvados.git] / lib / dispatchcloud / worker / throttle.go
index defbf91ff38390d22062aa03d1f3f34149428e27..5374afb44fccb0408e26039a8c53b1bfa1f8481d 100644 (file)
@@ -61,6 +61,12 @@ func (thr *throttle) Error() error {
        return thr.err
 }
 
+func (thr *throttle) ResetError() {
+       thr.mtx.Lock()
+       defer thr.mtx.Unlock()
+       thr.err = nil
+}
+
 type throttledInstanceSet struct {
        cloud.InstanceSet
        throttleCreate    throttle