Skip to content

Commit

Permalink
Add comment explaining version check
Browse files Browse the repository at this point in the history
  • Loading branch information
Imperiopolis authored Aug 10, 2023
1 parent abd9dad commit 3c9a7d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions load_balancer/src/load_balancer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ impl Service<Request<IncomingBody>> for LoadBalancer {
.and_then(|version| version.to_str().ok())
.and_then(|str| Version::parse(str).ok())
.is_some_and(|semver| {
// verify that major.minor is >= to our major.minor
// patch and bugfix versions can be out-of-sync
// to allow the SDK and realm software to make
// changes that don't break protocol compatability
semver.major > state.semver.major
|| (semver.major == state.semver.major
&& semver.minor >= state.semver.minor)
Expand Down

0 comments on commit 3c9a7d1

Please sign in to comment.