]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
flow-ctrl: indentation-only change
authorSteven Engler <opara@torproject.org>
Tue, 30 Sep 2025 01:54:06 +0000 (21:54 -0400)
committerSteven Engler <opara@torproject.org>
Tue, 30 Sep 2025 02:27:09 +0000 (22:27 -0400)
This is an intermediate commit to hopefully make reviewing easier. Adds
indentation and a `{}` scope.

src/core/or/congestion_control_flow.c

index fa9455a8a15ade7bd970dabd4994c5db4a59b32f..1b0d41c4909f2e388a2f3e88b98e2365f8e49064 100644 (file)
@@ -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;
+      }
     }
   }