aboutsummaryrefslogtreecommitdiff
path: root/src/https.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/https.rs')
-rw-r--r--src/https.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/https.rs b/src/https.rs
index 3718bfd..49df11a 100644
--- a/src/https.rs
+++ b/src/https.rs
@@ -247,8 +247,8 @@ async fn select_target_and_proxy(
.as_ref()
.map(|x| x.len() as i32)
.unwrap_or(0),
- ent.same_node,
- ent.same_site,
+ (ent.flags.same_node || ent.flags.site_lb || ent.flags.global_lb),
+ (ent.flags.same_site || ent.flags.global_lb),
-ent.calls_in_progress.load(Ordering::SeqCst),
-ent.last_call.load(Ordering::SeqCst),
)
@@ -260,8 +260,8 @@ async fn select_target_and_proxy(
"target_addr",
proxy_to.target_addr.to_string(),
));
- tags.push(KeyValue::new("same_node", proxy_to.same_node));
- tags.push(KeyValue::new("same_site", proxy_to.same_site));
+ tags.push(KeyValue::new("same_node", proxy_to.flags.same_node));
+ tags.push(KeyValue::new("same_site", proxy_to.flags.same_site));
proxy_to.last_call.fetch_max(
(received_time - https_config.time_origin).as_millis() as i64,