aboutsummaryrefslogtreecommitdiff
path: root/lib/rl.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rl.ml')
-rw-r--r--lib/rl.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rl.ml b/lib/rl.ml
index 316abcf..f0c15be 100644
--- a/lib/rl.ml
+++ b/lib/rl.ml
@@ -21,8 +21,9 @@ let rl_of_header h =
Some { limit; remaining; reset; }
| _ -> None
-let update = RouteMap.update
+let default = { limit = 1; remaining = 1; reset = 0; }
let empty : t = RouteMap.empty
+let update = RouteMap.update
let find = RouteMap.find
let find_exn m s = match find m s with
| Some r -> r