[code] improve structure (focus: server)

This commit is contained in:
ddidderr committed 2025-03-02 13:06:18 +01:00
1 parent bcf9ad68ad
commit adf6f9d757
11 files changed
+393 -368

No files matched your search

+3 -1
View File
@@ -1,6 +1,8 @@
#[macro_export]
macro_rules! maybe_addr {
($addr:expr) => {
$addr.map_or("<unknown>".to_string(), |addr| addr.to_string())
$addr.map_or(Arc::new("<unknown>".to_string()), |addr| {
Arc::new(addr.to_string())
})
};
}