-
-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
915 additions
and
109 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ authors = ["Stalwart Labs Ltd. <[email protected]>"] | |
license = "AGPL-3.0-only OR LicenseRef-SEL" | ||
repository = "https://github.com/stalwartlabs/cli" | ||
homepage = "https://github.com/stalwartlabs/cli" | ||
version = "0.10.1" | ||
version = "0.10.2" | ||
edition = "2021" | ||
readme = "README.md" | ||
resolver = "2" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "common" | ||
version = "0.10.1" | ||
version = "0.10.2" | ||
edition = "2021" | ||
resolver = "2" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,14 +62,20 @@ impl Core { | |
}) | ||
.unwrap_or_default(); | ||
|
||
#[cfg(not(feature = "enterprise"))] | ||
let is_enterprise = false; | ||
|
||
// SPDX-SnippetBegin | ||
// SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd <[email protected]> | ||
// SPDX-License-Identifier: LicenseRef-SEL | ||
#[cfg(feature = "enterprise")] | ||
let enterprise = crate::enterprise::Enterprise::parse(config, &stores, &data).await; | ||
|
||
#[cfg(feature = "enterprise")] | ||
if enterprise.is_none() { | ||
let is_enterprise = enterprise.is_some(); | ||
|
||
#[cfg(feature = "enterprise")] | ||
if is_enterprise { | ||
if data.is_enterprise_store() { | ||
config | ||
.new_build_error("storage.data", "SQL read replicas is an Enterprise feature"); | ||
|
@@ -121,7 +127,8 @@ impl Core { | |
} | ||
}) | ||
.unwrap_or_default(); | ||
let mut directories = Directories::parse(config, &stores, data.clone()).await; | ||
let mut directories = | ||
Directories::parse(config, &stores, data.clone(), is_enterprise).await; | ||
let directory = config | ||
.value_require("storage.directory") | ||
.map(|id| id.to_string()) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.