Skip to content

Commit d177468

Browse files
committed
try to fix undeclared lcf for #302
1 parent 9a33f30 commit d177468

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/c/ngx_http_clojure_module.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2562,20 +2562,16 @@ static ngx_int_t ngx_http_clojure_upstream_get_load_balancer_peer(ngx_peer_conne
25622562

25632563
ngx_http_clojure_init_ctx(ctx, NGX_HTTP_LOAD_BALANCE_PHASE, r);
25642564
ngx_http_set_ctx(r, ctx, ngx_http_clojure_module);
2565-
#if (NGX_DEBUG)
25662565
rc = ngx_http_clojure_eval(scf->load_balancer_id, r, pi);
2566+
#if (NGX_DEBUG)
25672567
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, ngx_http_clojure_global_cycle->log, 0, "ngx clojure balancer (null ctx) request: %" PRIu64 ", rc: %d", (jlong)(uintptr_t)r, rc);
2568-
#else
2569-
rc = ngx_http_clojure_eval(lcf->log_handler_id, r, pi);
25702568
#endif
25712569
} else {
25722570
ctx->hijacked_or_async = 0;
25732571
ctx->phase = NGX_HTTP_LOAD_BALANCE_PHASE;
2574-
#if (NGX_DEBUG)
25752572
rc = ngx_http_clojure_eval(scf->load_balancer_id, r, pi);
2573+
#if (NGX_DEBUG)
25762574
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, ngx_http_clojure_global_cycle->log, 0, "ngx clojure balancer (else) request: %" PRIu64 ", rc: %d", (jlong)(uintptr_t)r, rc);
2577-
#else
2578-
rc = ngx_http_clojure_eval(lcf->log_handler_id, r, pi);
25792575
#endif
25802576
}
25812577

0 commit comments

Comments
 (0)