Skip to content

Commit f30e754

Browse files
committed
fixup! Add more logging to rate limit
Signed-off-by: Christian Pardillo Laursen <christian.pardillolaursen@citrix.com>
1 parent 0341843 commit f30e754

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ocaml/libs/rate-limit/rate_limit.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ let rec worker_loop ~bucket ~process_queue ~process_queue_lock
4949
match item_opt with
5050
| None ->
5151
(* Queue is empty only when termination was signalled *)
52-
()
52+
D.debug "%s: queue empty in deleted rate limiter; exiting" __FUNCTION__
5353
| Some (cost, callback) ->
5454
process_item cost callback ;
5555
worker_loop ~bucket ~process_queue ~process_queue_lock ~worker_thread_cond
@@ -141,5 +141,6 @@ let submit_sync bucket_data ~callback amount =
141141
| None ->
142142
callback ()
143143
| Some channel ->
144+
D.debug "%s: rate limiting call" __FUNCTION__ ;
144145
Event.sync (Event.receive channel) ;
145146
callback ()

0 commit comments

Comments
 (0)