Skip to content

Commit

Permalink
its spelled udp
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem committed Feb 5, 2024
1 parent e92858f commit 606524c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/symbolicator-stress/src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub struct Config {
pub struct Guard {
sentry: Option<sentry::ClientInitGuard>,
pub http_sink: Option<Pin<Box<dyn Future<Output = ()> + Send>>>,
pub upd_sink: Option<Pin<Box<dyn Future<Output = ()> + Send>>>,
pub udp_sink: Option<Pin<Box<dyn Future<Output = ()> + Send>>>,
}

pub fn init(config: Config) -> Guard {
Expand Down Expand Up @@ -91,7 +91,7 @@ pub fn init(config: Config) -> Guard {
listener.set_nonblocking(true).unwrap();
let socket = listener.local_addr().unwrap();

guard.upd_sink = Some(Box::pin(async move {
guard.udp_sink = Some(Box::pin(async move {
let listener = tokio::net::UdpSocket::from_std(listener).unwrap();
let mut buf = Vec::with_capacity(1024);
loop {
Expand Down
2 changes: 1 addition & 1 deletion crates/symbolicator-stress/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fn main() -> Result<()> {
if let Some(http_sink) = logging_guard.http_sink.take() {
runtime.spawn(http_sink);
}
if let Some(udp) = logging_guard.upd_sink.take() {
if let Some(udp) = logging_guard.udp_sink.take() {
runtime.spawn(udp);
}

Expand Down

0 comments on commit 606524c

Please sign in to comment.