set status by lag for all upstreams (#291)

This commit is contained in:
a10zn8
2023-08-22 14:25:26 +04:00
committed by GitHub
parent 14fc2d22f8
commit 31b301952a

View File

@@ -89,11 +89,6 @@ abstract class DefaultUpstream(
}
private fun statusByLag(lag: Long?, proposed: UpstreamAvailability): UpstreamAvailability {
if (options.disableValidation) {
// if we specifically told that this upstream should be _always valid_ then skip
// the status calculation and trust the proposed value as is
return proposed
}
if (lag == null) {
return UpstreamAvailability.UNAVAILABLE
}