Skip to content

Commit

Permalink
Update supported worker versions and make them configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Wiezzel committed Aug 19, 2024
1 parent a60a901 commit f9c8169
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "query-gateway"
version = "1.0.8"
version = "1.0.9"
edition = "2021"

[dependencies]
Expand Down
6 changes: 5 additions & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ use crate::task::Task;
const COMP_UNITS_PER_QUERY: u32 = 1;

lazy_static! {
pub static ref SUPPORTED_WORKER_VERSIONS: VersionReq = ">=1.0.0-rc2".parse().unwrap();
pub static ref SUPPORTED_WORKER_VERSIONS: VersionReq =
std::env::var("SUPPORTED_WORKER_VERSIONS")
.unwrap_or(">=1.1.0-rc3".to_string())
.parse()
.expect("Invalid SUPPORTED_WORKER_VERSIONS");
}

pub struct Server<S: Stream<Item = GatewayEvent> + Send + Unpin + 'static> {
Expand Down

0 comments on commit f9c8169

Please sign in to comment.