Avoid checking for duplicate instance when local DB is disabled

This commit is contained in:
Julia 2023-07-07 14:19:13 -04:00
parent b70b76029e
commit caa29d57c2

View file

@ -37,6 +37,10 @@ pub enum IsOnlyInstance {
}
pub fn ensure_only_instance() -> IsOnlyInstance {
if *db::ZED_STATELESS {
return IsOnlyInstance::Yes;
}
if check_got_handshake() {
return IsOnlyInstance::No;
}