Skip to content

Commit d9ea267

Browse files
committed
fmt and lint fix
1 parent 1a9da39 commit d9ea267

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/epp/callbacks.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ unsafe fn setup_result_timer(r: *mut ngx_http_request_t, watcher_ptr: *mut Resul
496496
let event_ptr = unsafe {
497497
ngx::ffi::ngx_pcalloc(conn_pool, std::mem::size_of::<ngx_event_t>()) as *mut ngx_event_t
498498
};
499-
499+
500500
if event_ptr.is_null() {
501501
return false;
502502
}
@@ -568,9 +568,9 @@ unsafe extern "C" fn check_epp_result(ev: *mut ngx_event_t) {
568568
}
569569

570570
// Check if request has already been finalized/completed
571-
// If count is 0 or negative, request is being/has been freed
571+
// If count is 0, request is being/has been freed
572572
let count = unsafe { (*r).count() };
573-
if count <= 0 {
573+
if count == 0 {
574574
// Request is being freed, clean up timer and return
575575
unsafe {
576576
ngx_del_timer(ev);

src/modules/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use ngx::http::MergeConfigError;
55
pub struct ModuleConfig {
66
// Global settings
77
pub default_upstream: Option<String>, // global default upstream for both BBR and EPP failures
8-
pub max_body_size: usize, // max body size for processing (applies to BBR and EPP, default 10MB)
8+
pub max_body_size: usize, // max body size for processing (applies to BBR and EPP, default 10MB)
99

1010
// BBR (Body-Based Routing) - implemented directly in module
1111
pub bbr_enable: bool,

0 commit comments

Comments
 (0)