-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add experimental feature to support tcp ping for hazelcast
- Loading branch information
Showing
6 changed files
with
76 additions
and
1 deletion.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Added experimental, temp feature for supporting hazelcast pings |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
use mirrord_analytics::CollectAnalytics; | ||
use mirrord_config_derive::MirrordConfig; | ||
use schemars::JsonSchema; | ||
|
||
use crate::config::source::MirrordConfigSource; | ||
|
||
/// mirrord Experimental features. | ||
/// This shouldn't be used unless someone from MetalBear/mirrord tells you to. | ||
#[derive(MirrordConfig, Clone, Debug)] | ||
#[config(map_to = "ExperimentalFileConfig", derive = "JsonSchema")] | ||
#[cfg_attr(test, config(derive = "PartialEq, Eq"))] | ||
pub struct ExperimentalConfig { | ||
/// ## experimental {#fexperimental-tcp_ping4_mock} | ||
/// | ||
/// https://github.com/metalbear-co/mirrord/issues/2421#issuecomment-2093200904 | ||
#[config(default = true)] | ||
pub tcp_ping4_mock: bool, | ||
} | ||
|
||
impl CollectAnalytics for &ExperimentalConfig { | ||
fn collect_analytics(&self, analytics: &mut mirrord_analytics::Analytics) { | ||
analytics.add("tcp_ping4_mock", self.tcp_ping4_mock); | ||
} | ||
} |
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
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