From c7afe72f1bbdbe070314c23aa151ee0dc740c050 Mon Sep 17 00:00:00 2001 From: Chandra Penke Date: Wed, 24 Apr 2024 10:08:23 -0700 Subject: [PATCH] fix: enforce send + sync on HttpRequestVerifier --- rs/validator/ingress_message/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rs/validator/ingress_message/src/lib.rs b/rs/validator/ingress_message/src/lib.rs index 471562fff6d..a637be437c7 100644 --- a/rs/validator/ingress_message/src/lib.rs +++ b/rs/validator/ingress_message/src/lib.rs @@ -45,7 +45,7 @@ pub use internal::TimeProvider; /// but a signature was provided. /// * [`RequestValidationError::CanisterNotInDelegationTargets`]: if the request targets a canister /// that is not authorized in one of the delegations. -pub trait HttpRequestVerifier { +pub trait HttpRequestVerifier: Send + Sync { fn validate_request(&self, request: &HttpRequest) -> Result<(), RequestValidationError>; } /// Top-level error that occur when verifying an HTTP request