Skip to content

Commit

Permalink
set status by lag for all upstreams (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
a10zn8 authored Aug 22, 2023
1 parent 14fc2d2 commit 31b3019
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 31b3019

Please sign in to comment.