Skip to content

Commit

Permalink
insert proxy also in context for proxydb
Browse files Browse the repository at this point in the history
  • Loading branch information
GlenDC committed Sep 5, 2024
1 parent a5e55ad commit 01b25c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rama-proxy/src/proxydb/layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,10 @@ where
ctx.insert(proxy_address);

// insert the id of the selected proxy
ctx.insert(super::ProxyID::from(proxy.id));
ctx.insert(super::ProxyID::from(proxy.id.clone()));

// insert the entire proxy also in there, for full "Context"
ctx.insert(proxy);
}

self.inner.serve(ctx, req).await.map_err(Into::into)
Expand Down

0 comments on commit 01b25c3

Please sign in to comment.