Skip to content

Commit

Permalink
Ban empty messages and add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFeickert committed Jan 24, 2023
1 parent 6b125af commit 9f08fc8
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 145 deletions.
2 changes: 1 addition & 1 deletion comms/dht/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

use thiserror::Error;

#[derive(Debug, Error)]
#[derive(Debug, Error, PartialEq)]
pub enum DhtEncryptError {
#[error("Message body invalid")]
InvalidMessageBody,
Expand Down
Loading

0 comments on commit 9f08fc8

Please sign in to comment.