Skip to content

Commit 343fc98

Browse files
gumpteaufavor
authored andcommitted
change visibility of create_dummy_session
I'd like to use this in a filter outside of this crate. Need to change the visibility in order for it to be available.
1 parent 36d68e8 commit 343fc98

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.bleep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
fc39bb0c3d35fa5e07c21c261c2a5a68af53d440
1+
ce25a5ec3f6937d70f6a60b79adb6dd299144a84

pingora-proxy/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ mod proxy_h1;
7474
mod proxy_h2;
7575
mod proxy_purge;
7676
mod proxy_trait;
77-
mod subrequest;
77+
pub mod subrequest;
7878

7979
use subrequest::Ctx as SubReqCtx;
8080

pingora-proxy/src/subrequest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ pub(crate) struct Ctx {
124124

125125
use crate::HttpSession;
126126

127-
pub(crate) fn create_dummy_session(parsed_session: &HttpSession) -> HttpSession {
127+
pub fn create_dummy_session(parsed_session: &HttpSession) -> HttpSession {
128128
// TODO: check if there is req body, we don't capture the body for now
129129
HttpSession::new_http1(Box::new(DummyIO::new(&parsed_session.to_h1_raw())))
130130
}

0 commit comments

Comments
 (0)