Skip to content

Commit 2a57f1d

Browse files
committed
style: clang-format the DATA_FLOWS walk
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
1 parent f04df4a commit 2a57f1d

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎src/pipeline/pass_route_nodes.c‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -743,8 +743,9 @@ static int try_create_data_flow(cbm_gbuf_t *gb, int64_t caller_id, int64_t handl
743743

744744
/* One route's DATA_FLOWS context: its direct handlers (handler -[HANDLES]-> route) and its
745745
* INFRA_MAPS hops (route -[INFRA_MAPS]-> endpoint, whose handlers are reached via the endpoint).
746-
* The edge arrays are the graph buffer's own index arrays. Inserting DATA_FLOWS never appends to a
747-
* HANDLES, INFRA_MAPS, HTTP_CALLS or ASYNC_CALLS array, so they stay valid while flows are added. */
746+
* The edge arrays are the graph buffer's own index arrays. Inserting DATA_FLOWS never appends to
747+
* a HANDLES, INFRA_MAPS, HTTP_CALLS or ASYNC_CALLS array, so they stay valid while flows are added
748+
* (only edge deletion rebuilds the indexes). */
748749
typedef struct {
749750
cbm_gbuf_t *gb;
750751
const cbm_gbuf_node_t *route;
@@ -776,8 +777,8 @@ static void caller_data_flows(route_flows_t *rf, const cbm_gbuf_edge_t *caller,
776777
for (int ie = 0; ie < rf->infra_count; ie++) {
777778
const cbm_gbuf_edge_t **ep_handles = NULL;
778779
int ep_hcount = 0;
779-
cbm_gbuf_find_edges_by_target_type(rf->gb, rf->infra[ie]->target_id, "HANDLES",
780-
&ep_handles, &ep_hcount);
780+
cbm_gbuf_find_edges_by_target_type(rf->gb, rf->infra[ie]->target_id, "HANDLES", &ep_handles,
781+
&ep_hcount);
781782
for (int eh = 0; eh < ep_hcount; eh++) {
782783
route_flow_add(rf, caller, ep_handles[eh]->source_id, edge_type, true);
783784
}

0 commit comments

Comments
 (0)