Skip to content

Commit

Permalink
Remove nix dependency (#703)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuris authored Aug 19, 2024
1 parent 8d46663 commit 41c66c9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion firewood/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ storage = { version = "0.0.4", path = "../storage" }
futures = "0.3.30"
hex = "0.4.3"
metered = "0.9.0"
nix = {version = "0.28.0", features = ["fs", "uio"]}
serde = { version = "1.0" }
sha2 = "0.10.8"
thiserror = "1.0.57"
Expand Down
2 changes: 0 additions & 2 deletions firewood/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const _VERSION_STR: &[u8; 16] = b"firewood v0.1\0\0\0";
pub enum DbError {
InvalidParams,
Merkle(MerkleError),
System(nix::Error),
CreateError,
IO(std::io::Error),
InvalidProposal,
Expand All @@ -38,7 +37,6 @@ impl fmt::Display for DbError {
match self {
DbError::InvalidParams => write!(f, "invalid parameters provided"),
DbError::Merkle(e) => write!(f, "merkle error: {e:?}"),
DbError::System(e) => write!(f, "system error: {e:?}"),
DbError::CreateError => write!(f, "database create error"),
DbError::IO(e) => write!(f, "I/O error: {e:?}"),
DbError::InvalidProposal => write!(f, "invalid proposal"),
Expand Down
1 change: 0 additions & 1 deletion firewood/src/v2/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ impl From<DbError> for api::Error {
match value {
DbError::InvalidParams => api::Error::InternalError(Box::new(value)),
DbError::Merkle(e) => api::Error::InternalError(Box::new(e)),
DbError::System(e) => api::Error::IO(e.into()),
DbError::CreateError => api::Error::InternalError(Box::new(value)),
DbError::IO(e) => api::Error::IO(e),
DbError::InvalidProposal => api::Error::InvalidProposal,
Expand Down

0 comments on commit 41c66c9

Please sign in to comment.