From efe775b564b1bb755e6387a8892bac4f5d46cc2b Mon Sep 17 00:00:00 2001 From: Enzzo Date: Mon, 28 Apr 2025 22:21:04 -0300 Subject: [PATCH] Fix type hint in default-client It is not a HttpClient It is a delay of a map with an HttpClient in :client key :) --- src/babashka/http_client/internal.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/babashka/http_client/internal.clj b/src/babashka/http_client/internal.clj index 4d1a630..dea6807 100644 --- a/src/babashka/http_client/internal.clj +++ b/src/babashka/http_client/internal.clj @@ -189,7 +189,7 @@ :accept-encoding ["gzip" "deflate"] :user-agent (str "babashka.http-client/" iv/version)}}}) -(def ^HttpClient default-client +(def default-client (delay (client default-client-opts))) (defn- method-keyword->str [method]