Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cpiemontese committed Mar 5, 2024
1 parent de3dac4 commit 62363b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ version = "0.7.1"
async-trait = "0.1"
dogstatsd = {version = "=0.11.0", default-features = false}
once_cell = {version = "1.9", default-features = false, features = ["std"]}
serde = {version = "1", optional = true}
thiserror = {version = "1.0", default-features = false}

# Optional
serde = {version = "1", optional = true}

[dev-dependencies]
criterion = "0.5"
mockall = {version = "0.12", default-features = false}
Expand Down
5 changes: 3 additions & 2 deletions src/configuration/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ use std::fmt::Display;
use std::str::FromStr;

/// By binding to 0.0.0.0:0 we're just letting the OS assign us a port, and letting anyone send us UDP packets on that port
/// This is fine since the statsd protocol is unidirectional(only sends data) to the server
/// We can't just bind to a different address(eg. localhost) because that would prevent us from sending data to the server
///
/// This is fine since the statsd protocol is unidirectional (only sends data) to the server.
/// We can't just bind to a different address (e.g. localhost) because that would prevent us from sending data to the server
const DEFAULT_FROM_ADDR: &str = "0.0.0.0:0";

/// The struct that represents options for the Datadog client in Prima.
Expand Down

0 comments on commit 62363b0

Please sign in to comment.