Skip to content

Commit 54228bf

Browse files
committed
Require Metadata to be Send + Sync
1 parent 22a7b74 commit 54228bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protocols/gossipsub/src/partial.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub trait Partial {
6262
) -> Result<PublishAction, PartialMessageError>;
6363
}
6464

65-
pub trait Metadata: Debug {
65+
pub trait Metadata: Debug + Send + Sync {
6666
/// Return the `Metadata` as a byte slice.
6767
fn as_slice(&self) -> &[u8];
6868
/// try to Update the `Metadata` with the remote data,

0 commit comments

Comments
 (0)