Skip to content

Commit 94e9de6

Browse files
gumptdrcaramelsyrup
authored andcommitted
increase visibility of multirange items
This exports a few more symbols so they can be used by others.
1 parent a7a7941 commit 94e9de6

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-
68e9b2ed27b468db18cb32712359f19d0c45926a
1+
886e93a1a72624b4b23d164426142d0a1b431b75

pingora-proxy/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ pub mod subrequest;
8888

8989
use subrequest::{BodyMode, Ctx as SubrequestCtx};
9090

91-
pub use proxy_cache::range_filter::{range_header_filter, RangeType};
91+
pub use proxy_cache::range_filter::{range_header_filter, MultiRangeInfo, RangeType};
9292
pub use proxy_purge::PurgeStatus;
9393
pub use proxy_trait::{FailToProxy, ProxyHttp};
9494

pingora-proxy/src/proxy_cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ pub mod range_filter {
12351235
let mut rng: rand::prelude::ThreadRng = rand::thread_rng();
12361236
format!("{:016x}", rng.gen::<u64>())
12371237
}
1238-
fn calculate_multipart_length(&self) -> usize {
1238+
pub fn calculate_multipart_length(&self) -> usize {
12391239
let mut total_length = 0;
12401240
let content_type = self.content_type.as_ref();
12411241
for range in self.ranges.clone() {

0 commit comments

Comments
 (0)