mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-26 10:21:53 +00:00
put validation behind a feature flag
This commit is contained in:
committed by
Aiden McClelland
parent
70dc690437
commit
f45f3a5b33
@@ -14,6 +14,7 @@ version = "0.1.0"
|
||||
[features]
|
||||
debug = ["tracing"]
|
||||
trace = ["debug", "tracing-error"]
|
||||
unstable = []
|
||||
|
||||
[dependencies]
|
||||
async-trait = "0.1.42"
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user