put validation behind a feature flag

This commit is contained in:
Keagan McClelland
2021-12-20 17:45:16 -07:00
committed by Aiden McClelland
parent 70dc690437
commit f45f3a5b33
2 changed files with 4 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ version = "0.1.0"
[features]
debug = ["tracing"]
trace = ["debug", "tracing-error"]
unstable = []
[dependencies]
async-trait = "0.1.42"

View File

@@ -325,6 +325,9 @@ impl LockOrderEnforcer {
//
// Sequences
// LockRequest >> LockRequest
#[cfg(not(feature = "unstable"))]
return Ok(());
#[cfg(feature = "unstable")]
match self.locks_held.get(&req.handle_id) {
None => Ok(()),
Some(m) => {