From 983abee712c912d3a8a4efa9717e462295117efd Mon Sep 17 00:00:00 2001 From: John Shaffer Date: Wed, 27 Dec 2023 18:52:44 -0600 Subject: [PATCH] Add missing refers in README. Fixes #2 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bc54669..2cc10f8 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Requests` response when the rate limit is exhausted. ```clj (use 'compojure.core) -(require '[io.staticweb.rate-limit.middleware :refer [wrap-rate-limit]]) +(require '[io.staticweb.rate-limit.middleware :refer [ip-rate-limit wrap-rate-limit]]) (require '[io.staticweb.rate-limit.storage :as storage]) ;; Instantiate a storage backend @@ -107,7 +107,7 @@ perform `100 req/h` rather than the intended `5000 req/h`. ```clj (use 'compojure.core) -(require '[io.staticweb.rate-limit.middleware :refer [wrap-rate-limit]]) +(require '[io.staticweb.rate-limit.middleware :refer [ip-rate-limit wrap-rate-limit wrap-stacking-rate-limit]]) (require '[io.staticweb.rate-limit.storage :as storage]) ;; A custom per-user rate limit