Skip to content

gitserver: handle zero limit correctly

Administrator requested to merge jc/gitserver-limit-0 into main

Created by: unknwon

The pitfall of a limiter with zero limit is that the burst size also has to be set to 0, otherwise, the limiter will be refilled with N tokens every second.

Closes: https://github.com/sourcegraph/sourcegraph/issues/19720

Merge request reports

Loading