From 216bb9308889996553a69a9fa29afdf9f11f043b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Mon, 29 Jan 2024 22:27:03 +0100 Subject: [PATCH] udp: improve WorkerType Display implementation --- crates/udp/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/udp/src/lib.rs b/crates/udp/src/lib.rs index 09145e0..d26e8bb 100644 --- a/crates/udp/src/lib.rs +++ b/crates/udp/src/lib.rs @@ -281,8 +281,8 @@ enum WorkerType { impl Display for WorkerType { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Self::Swarm(index) => f.write_fmt(format_args!("Swarm worker {}", index)), - Self::Socket(index) => f.write_fmt(format_args!("Socket worker {}", index)), + Self::Swarm(index) => f.write_fmt(format_args!("Swarm worker {}", index + 1)), + Self::Socket(index) => f.write_fmt(format_args!("Socket worker {}", index + 1)), Self::Statistics => f.write_str("Statistics worker"), Self::Signals => f.write_str("Signals worker"), #[cfg(feature = "prometheus")]