refactor
This commit is contained in:
parent
f98432fc69
commit
a52f74c434
3 changed files with 20 additions and 11 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue