mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 05:16:28 +03:00
fix: use relay only for tests
This commit is contained in:
@@ -244,9 +244,12 @@ impl Context {
|
|||||||
{
|
{
|
||||||
RelayMode::Custom(RelayMap::from_url(RelayUrl::from(relay_url)))
|
RelayMode::Custom(RelayMap::from_url(RelayUrl::from(relay_url)))
|
||||||
} else {
|
} else {
|
||||||
// FIXME: this should be RelayMode::Disabled instead.
|
#[cfg(test)]
|
||||||
// Currently using default relays because otherwise Rust tests fail.
|
{
|
||||||
RelayMode::Default
|
RelayMode::Default
|
||||||
|
}
|
||||||
|
#[cfg(not(test))]
|
||||||
|
RelayMode::Disabled
|
||||||
};
|
};
|
||||||
|
|
||||||
let endpoint = Endpoint::builder()
|
let endpoint = Endpoint::builder()
|
||||||
|
|||||||
Reference in New Issue
Block a user