node: Fix log pluralization

This commit is contained in:
Alexis Sellier 2023-04-24 15:31:06 +02:00
parent 7d72b16087
commit 045d201916
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -420,11 +420,11 @@ impl Message {
let msg = match self {
Self::Announcement(Announcement { node, message, .. }) => match message {
AnnouncementMessage::Node(NodeAnnouncement { addresses, .. }) => format!(
"{verb} node announcement of {node} with {} addresses {prep} {remote}",
"{verb} node announcement of {node} with {} address(es) {prep} {remote}",
addresses.len()
),
AnnouncementMessage::Refs(RefsAnnouncement { rid, refs, .. }) => format!(
"{verb} refs announcement of {node} for {rid} with {} remotes {prep} {remote}",
"{verb} refs announcement of {node} for {rid} with {} remote(s) {prep} {remote}",
refs.len()
),
AnnouncementMessage::Inventory(InventoryAnnouncement { inventory, .. }) => {