mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
udp: improve WorkerType Display implementation
This commit is contained in:
parent
9d8aca8f86
commit
216bb93088
1 changed files with 2 additions and 2 deletions
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue