From: Steven Engler Date: Tue, 30 Sep 2025 01:54:06 +0000 (-0400) Subject: flow-ctrl: indentation-only change X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f21d20ce0f5dc5ee38546d26da44c9d8a22181af;p=thirdparty%2Ftor.git flow-ctrl: indentation-only change This is an intermediate commit to hopefully make reviewing easier. Adds indentation and a `{}` scope. --- diff --git a/src/core/or/congestion_control_flow.c b/src/core/or/congestion_control_flow.c index fa9455a8a1..1b0d41c490 100644 --- a/src/core/or/congestion_control_flow.c +++ b/src/core/or/congestion_control_flow.c @@ -459,19 +459,21 @@ flow_control_decide_xoff(edge_connection_t *stream) if (total_buffered > buffer_limit_xoff) { if (!stream->xoff_sent) { - log_info(LD_EDGE, "Sending XOFF: %"TOR_PRIuSZ" %d", - total_buffered, buffer_limit_xoff); - tor_trace(TR_SUBSYS(cc), TR_EV(flow_decide_xoff_sending), stream); + { + log_info(LD_EDGE, "Sending XOFF: %"TOR_PRIuSZ" %d", + total_buffered, buffer_limit_xoff); + tor_trace(TR_SUBSYS(cc), TR_EV(flow_decide_xoff_sending), stream); - cc_stats_flow_xoff_outbuf_ma = - stats_update_running_avg(cc_stats_flow_xoff_outbuf_ma, - total_buffered); + cc_stats_flow_xoff_outbuf_ma = + stats_update_running_avg(cc_stats_flow_xoff_outbuf_ma, + total_buffered); - circuit_send_stream_xoff(stream); + circuit_send_stream_xoff(stream); - /* Clear the drain rate. It is considered wrong if we - * got all the way to XOFF */ - stream->ewma_drain_rate = 0; + /* Clear the drain rate. It is considered wrong if we + * got all the way to XOFF */ + stream->ewma_drain_rate = 0; + } } }