chore: add Sync to PayloadBuilder (#12425)

This commit is contained in:
Matthias Seitz
2024-11-09 17:58:31 +01:00
committed by GitHub
parent 59ebebaa63
commit 1b1f0f3ef8

View File

@ -11,7 +11,7 @@ use tokio::sync::oneshot;
/// A type that can request, subscribe to and resolve payloads.
#[async_trait::async_trait]
pub trait PayloadBuilder: Send + Unpin {
pub trait PayloadBuilder: Send + Sync + Unpin {
/// The Payload type for the builder.
type PayloadType: PayloadTypes;
/// The error type returned by the builder.