reorder entries by the priority, minor string build optimization

This commit is contained in:
yggverse 2026-03-27 06:57:24 +02:00
parent a31aabf309
commit e9a528f252

View file

@ -48,11 +48,9 @@ impl Feed {
time.timestamp() // must be unique as the event
));
self.0.push_str("<description>");
self.0.push_str(&format!("connect: {a}\n"));
self.0.push_str(&format!("map: {map}\n"));
self.0.push_str(&format!("online: {online}\n"));
self.0.push_str("</description>");
self.0.push_str(&format!(
"<description>online: {online}\nmap: {map}\nconnect: {a}\n</description>"
));
self.0.push_str("<pubDate>");
self.0.push_str(&time.to_rfc2822());