Skip to content

Commit

Permalink
call metrics_init when initializing ziti context
Browse files Browse the repository at this point in the history
  • Loading branch information
scareything authored and ekoby committed Feb 21, 2024
1 parent 3078857 commit 9cda05d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/ziti.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ static void ziti_init_async(ziti_context ztx, void *data) {
ZTX_LOG(DEBUG, "using metrics interval: %d", (int) ztx->opts.metrics_type);
metrics_rate_init(&ztx->up_rate, ztx->opts.metrics_type);
metrics_rate_init(&ztx->down_rate, ztx->opts.metrics_type);
metrics_init(loop, 5);

if (init_req->start) {
ziti_start_internal(ztx, NULL);
Expand Down

0 comments on commit 9cda05d

Please sign in to comment.