We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d17b89 commit d62fc89Copy full SHA for d62fc89
1 file changed
crates/fluxqueue-worker/src/worker.rs
@@ -339,14 +339,13 @@ fn check_worker_is_ready(ready_check: ReadyCheck) {
339
}
340
341
fn check_client_library_version() -> Result<()> {
342
+ let worker_version = env!("CARGO_PKG_VERSION");
343
let library_version = Python::attach(|py| -> Result<String> {
344
let module = py.import("fluxqueue")?;
345
let version = module.getattr("__version__")?;
346
Ok(version.to_string())
347
})?;
348
- let worker_version = env!("CARGO_PKG_VERSION");
349
-
350
let comparison = compare_versions(worker_version, &library_version);
351
if comparison == -1 {
352
tracing::warn!(
0 commit comments