mirror of
https://github.com/tlsnotary/tlsn.git
synced 2026-01-09 14:48:13 -05:00
refactor(tlsn): change network setting default to reduce data transfer (#971)
This commit is contained in:
@@ -233,15 +233,17 @@ impl ProtocolConfigValidator {
|
|||||||
/// situations.
|
/// situations.
|
||||||
#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
|
||||||
pub enum NetworkSetting {
|
pub enum NetworkSetting {
|
||||||
/// Prefers a bandwidth-heavy protocol.
|
/// Reduces network round-trips at the expense of consuming more network
|
||||||
|
/// bandwidth.
|
||||||
Bandwidth,
|
Bandwidth,
|
||||||
/// Prefers a latency-heavy protocol.
|
/// Reduces network bandwidth utilization at the expense of more network
|
||||||
|
/// round-trips.
|
||||||
Latency,
|
Latency,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for NetworkSetting {
|
impl Default for NetworkSetting {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self::Bandwidth
|
Self::Latency
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user