From 1b646079ef3e3c4438c3eeb20514e4d2731f444e Mon Sep 17 00:00:00 2001 From: vemv Date: Mon, 13 Sep 2021 02:52:01 +0200 Subject: [PATCH] Use `require-lock` in the last remaining place --- src/refactor_nrepl/middleware.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/refactor_nrepl/middleware.clj b/src/refactor_nrepl/middleware.clj index 29a48b60..e67a1cd8 100644 --- a/src/refactor_nrepl/middleware.clj +++ b/src/refactor_nrepl/middleware.clj @@ -11,7 +11,8 @@ [nrepl.transport :as transport])) (defn- require-and-resolve [sym] - (require (symbol (namespace sym))) + (locking core/require-lock + (require (symbol (namespace sym)))) (resolve sym)) (defn err-info