This commit is contained in:
Jun Kurihara 2025-06-03 14:59:37 +09:00
commit a52f74c434
No known key found for this signature in database
GPG key ID: B184DE07B34AA676
3 changed files with 20 additions and 11 deletions

View file

@ -6,7 +6,7 @@ use super::{
utils_request::InspectParseHost,
};
use crate::{
backend::BackendAppManager,
backend::{BackendAppManager, LoadBalanceContext},
error::*,
forwarder::{ForwardRequest, Forwarder},
globals::Globals,
@ -24,10 +24,7 @@ use tokio::io::copy_bidirectional;
#[derive(Debug)]
/// Context object to handle sticky cookies at HTTP message handler
pub(super) struct HandlerContext {
#[cfg(feature = "sticky-cookie")]
pub(super) context_lb: Option<crate::backend::LoadBalanceContext>,
#[cfg(not(feature = "sticky-cookie"))]
pub(super) context_lb: Option<()>,
pub(super) context_lb: Option<LoadBalanceContext>,
}
#[derive(Clone, Builder)]