Skip to content

Commit

Permalink
Add missing refers in README. Fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
john-shaffer committed Dec 28, 2023
1 parent ad3d1d1 commit 983abee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 983abee

Please sign in to comment.