fix(client-ocurl): fix tick version used in the absence of bg thread

This commit is contained in:
Simon Cruanes 2022-09-30 16:38:35 -04:00
parent e5ad99f770
commit 17d723fef8
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -552,6 +552,7 @@ let mk_emitter ~stop ~(config : Config.t) () : (module EMITTER) =
let set_on_tick_callbacks = set_on_tick_callbacks
let tick () =
tick_common_ ();
sample_gc_metrics_if_needed ();
let@ () = Lock.with_lock in
let now = Mtime_clock.now () in