storage: use proper sched context
@@ -265,7 +265,7 @@ struct flb_storage_metrics *flb_storage_metrics_create(struct flb_config *ctx)
return NULL;
}
- ret = flb_sched_timer_cb_create(ctx, FLB_SCHED_TIMER_CB_PERM, 5000,
+ ret = flb_sched_timer_cb_create(ctx->sched, FLB_SCHED_TIMER_CB_PERM, 5000,
cb_storage_metrics_collect,
ctx->storage_metrics_ctx);
if (ret == -1) {
