Skip to content

Commit

Permalink
remove debug stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
scareything committed Oct 22, 2024
1 parent f9cbec7 commit 393fe23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/bind.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ static void process_bindings(struct ziti_conn *conn) {
struct ziti_ctx *ztx = conn->ziti_ctx;

size_t target = MIN(conn->server.max_bindings, model_map_size(&ztx->channels));

const char *url;
for(int idx = 0; conn->server.routers && conn->server.routers[idx]; idx++) {
ziti_edge_router *er = conn->server.routers[idx];
Expand Down Expand Up @@ -140,7 +141,7 @@ static void process_bindings(struct ziti_conn *conn) {
}
if (target <= 0) break;
}
ZITI_LOG(DEBUG, "target is %ld", target);

schedule_rebind(conn, target > 0);
}

Expand Down Expand Up @@ -248,6 +249,7 @@ static void list_routers_cb(ziti_service_routers *srv_routers, const ziti_error
}
}
free(srv_routers);

process_bindings(conn);
}

Expand Down

0 comments on commit 393fe23

Please sign in to comment.