From dd27ab6792fb44f093833d612dfcecea3a3ab7b3 Mon Sep 17 00:00:00 2001 From: Leandro Doctors Date: Tue, 29 Aug 2023 21:28:46 +0200 Subject: [PATCH] fix: dev_workflow.md code example If I use "(constantly...)", I get the following exception: Exception: java.lang.IllegalArgumentException: No implementation of method: :match-by-path of protocol: #'reitit.core/Router found for class: clojure.core$constantly$fn__5740 --- doc/advanced/dev_workflow.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/advanced/dev_workflow.md b/doc/advanced/dev_workflow.md index 032ded69..bcc020e5 100644 --- a/doc/advanced/dev_workflow.md +++ b/doc/advanced/dev_workflow.md @@ -142,7 +142,7 @@ Let's apply a small change to our ```ns3```. We'll replace our router by two dif ["/ping" ::ping]]) (def dev-router #(r/router (routes))) ;; A router for dev -(def prod-router (constantly (r/router (routes)))) ;; A router for prod +(def prod-router (r/router (routes))) ;; A router for prod ``` And there you have it, dynamic during dev, performance at production. We have it all !