Skip to content

Commit d62fc89

Browse files
committed
Update
1 parent 9d17b89 commit d62fc89

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

crates/fluxqueue-worker/src/worker.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,14 +339,13 @@ fn check_worker_is_ready(ready_check: ReadyCheck) {
339339
}
340340

341341
fn check_client_library_version() -> Result<()> {
342+
let worker_version = env!("CARGO_PKG_VERSION");
342343
let library_version = Python::attach(|py| -> Result<String> {
343344
let module = py.import("fluxqueue")?;
344345
let version = module.getattr("__version__")?;
345346
Ok(version.to_string())
346347
})?;
347348

348-
let worker_version = env!("CARGO_PKG_VERSION");
349-
350349
let comparison = compare_versions(worker_version, &library_version);
351350
if comparison == -1 {
352351
tracing::warn!(

0 commit comments

Comments
 (0)