From f448b14f18bfcf6c56467f33d23eaba9d3c5c3cc Mon Sep 17 00:00:00 2001 From: Einar Date: Fri, 12 Apr 2024 07:58:46 +0200 Subject: [PATCH] Fix #319 (#320) I can't actually reproduce this, but the error in the linked issue is fairly clear, this should fix it. --- lib/src/client/transport/state.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/client/transport/state.rs b/lib/src/client/transport/state.rs index b3785e56d..9bd8eb59d 100644 --- a/lib/src/client/transport/state.rs +++ b/lib/src/client/transport/state.rs @@ -20,7 +20,7 @@ use crate::{ }; use arc_swap::ArcSwap; -pub type RequestSend = tokio::sync::mpsc::Sender; +pub(crate) type RequestSend = tokio::sync::mpsc::Sender; lazy_static! { static ref NEXT_SESSION_ID: AtomicU32 = AtomicU32::new(1); @@ -112,7 +112,7 @@ impl SecureChannelState { } } - pub(crate) fn begin_issue_or_renew_secure_channel( + pub(super) fn begin_issue_or_renew_secure_channel( &self, request_type: SecurityTokenRequestType, timeout: Duration, @@ -158,7 +158,7 @@ impl SecureChannelState { debug!("Client offset set to {}", self.client_offset); } - pub(crate) fn end_issue_or_renew_secure_channel( + pub(super) fn end_issue_or_renew_secure_channel( &self, response: SupportedMessage, ) -> Result<(), StatusCode> {