From 3cef6a9cac5722ce6878ae28fe7d4d0bca6f58d0 Mon Sep 17 00:00:00 2001 From: George Narroway Date: Sat, 29 Jun 2024 12:01:23 +0800 Subject: [PATCH] #65 Relax docstring for executor in line with underlying HttpClient --- src/hato/client.clj | 2 +- test/hato/client_test.clj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hato/client.clj b/src/hato/client.clj index a38f476..68e577f 100644 --- a/src/hato/client.clj +++ b/src/hato/client.clj @@ -218,7 +218,7 @@ `cookie-handler` a java.net.CookieHandler `cookie-policy` :none, :all, :original-server. cookie-handler takes precedence if specified `connect-timeout` in milliseconds - `executor` a java.util.concurrent.ThreadPoolExecutor + `executor` a java.util.concurrent.Executor `redirect-policy` :never (default), :normal, :always `priority` an integer between 1 and 256 inclusive for HTTP/2 requests `proxy` a java.net.ProxySelector or :no-proxy diff --git a/test/hato/client_test.clj b/test/hato/client_test.clj index 6bd04d0..8be808b 100644 --- a/test/hato/client_test.clj +++ b/test/hato/client_test.clj @@ -75,7 +75,7 @@ (let [executor (pexec/fixed-pool 1) client (build-http-client {:executor executor}) stored-executor (.orElse (.executor client) nil)] - (is (instance? java.util.concurrent.ThreadPoolExecutor stored-executor) "executor has proper type") + (is (instance? java.util.concurrent.Executor stored-executor) "executor has proper type") (is (= executor stored-executor) "executor set properly"))) (testing "ssl-context"