node: Implement subscriptions via bloom filter

Signed-off-by: Alexis Sellier <alexis@radicle.xyz>
This commit is contained in:
Alexis Sellier
2022-09-15 13:20:59 +02:00
parent d7a2520ad3
commit 79c89a239a
6 changed files with 134 additions and 36 deletions
+2
View File
@@ -21,6 +21,8 @@ pub enum Error {
FromUtf8(#[from] FromUtf8Error),
#[error("invalid size: expected {expected}, got {actual}")]
InvalidSize { expected: usize, actual: usize },
#[error("invalid filter size: {0}")]
InvalidFilterSize(usize),
#[error(transparent)]
InvalidRefName(#[from] fmt::Error),
#[error("invalid git url `{url}`: {error}")]