Skip to content

Commit

Permalink
insert fallback proxy filter into ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
GlenDC committed Sep 16, 2024
1 parent 685cd66 commit 51a01c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rama-proxy/src/proxydb/layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ where
.context("missing proxy filter")?,
),
ProxyFilterMode::Fallback(ref filter) => {
ctx.get::<ProxyFilter>().cloned().or(Some(filter.clone()))
Some(ctx.get_or_insert_with(|| filter.clone()).clone())
}
};

Expand Down

0 comments on commit 51a01c6

Please sign in to comment.