mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 06:05:19 +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 {
|
||||
if *db::ZED_STATELESS {
|
||||
return IsOnlyInstance::Yes;
|
||||
}
|
||||
|
||||
if check_got_handshake() {
|
||||
return IsOnlyInstance::No;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue