mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-06 18:46:49 +00:00
Avoid checking for duplicate instance when local DB is disabled
This commit is contained in:
parent
b70b76029e
commit
caa29d57c2
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,10 @@ pub enum IsOnlyInstance {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn ensure_only_instance() -> IsOnlyInstance {
|
pub fn ensure_only_instance() -> IsOnlyInstance {
|
||||||
|
if *db::ZED_STATELESS {
|
||||||
|
return IsOnlyInstance::Yes;
|
||||||
|
}
|
||||||
|
|
||||||
if check_got_handshake() {
|
if check_got_handshake() {
|
||||||
return IsOnlyInstance::No;
|
return IsOnlyInstance::No;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue