Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW: Remove unused field
Lorenz Leutgeb committed 3 months ago
commit 91e3bdcb4b0226a43ec9f9adea6ee812cb9fe613
parent a3c4f02e9aea0ccc5c7c28dad392697a3e4e3173
1 file changed +1 -6
modified crates/radicle-node/src/runtime/socket/unix.rs
@@ -52,8 +52,6 @@ pub const MAX_PATH_LEN: usize = 104;
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct UnixSocketPath {
    inner: PathBuf,
-
    /// Cached byte length for quick access
-
    byte_len: usize,
}

impl UnixSocketPath {
@@ -102,10 +100,7 @@ impl UnixSocketPath {
            });
        }

-
        Ok(Self {
-
            byte_len: bytes.len(),
-
            inner: path,
-
        })
+
        Ok(Self { inner: path })
    }

    /// Returns the path as a `Path` reference.