Skip to content

Commit 3808fd3

Browse files
use matchit crate
1 parent 97b8056 commit 3808fd3

File tree

6 files changed

+284
-94
lines changed

6 files changed

+284
-94
lines changed

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ log = "0.4.28"
4040
log-fastly = "0.11.12"
4141
lol_html = "2.7.0"
4242
once_cell = "1.21"
43+
matchit = "0.9"
4344
pin-project-lite = "0.2"
4445
rand = "0.8"
4546
regex = "1.12.2"

crates/common/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ log = { workspace = true }
3131
rand = { workspace = true }
3232
log-fastly = { workspace = true }
3333
lol_html = { workspace = true }
34+
matchit = { workspace = true }
3435
pin-project-lite = { workspace = true }
3536
regex = { workspace = true }
3637
serde = { workspace = true }

crates/common/src/integrations/prebid.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ use crate::settings::{IntegrationConfig, Settings};
2626
use crate::synthetic::{generate_synthetic_id, get_or_generate_synthetic_id};
2727

2828
const PREBID_INTEGRATION_ID: &str = "prebid";
29-
30-
// Legacy route paths (kept for backwards compatibility)
3129
const ROUTE_FIRST_PARTY_AD: &str = "/first-party/ad";
3230
const ROUTE_THIRD_PARTY_AD: &str = "/third-party/ad";
3331

@@ -138,11 +136,7 @@ impl PrebidIntegration {
138136
},
139137
)?;
140138

141-
log::info!(
142-
"{}: received {} adUnits",
143-
ROUTE_THIRD_PARTY_AD,
144-
body.ad_units.len()
145-
);
139+
log::info!("/third-party/ad: received {} adUnits", body.ad_units.len());
146140
for unit in &body.ad_units {
147141
if let Some(mt) = &unit.media_types {
148142
if let Some(banner) = &mt.banner {

0 commit comments

Comments
 (0)