From 16e1ac214380ba0c964307b25d2870dc8c42db3d Mon Sep 17 00:00:00 2001 From: Long Le Date: Thu, 22 Jun 2023 11:38:36 +0700 Subject: [PATCH] use ConnPool in NewClientFromPool instead *redis.Pool --- redisearch/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redisearch/client.go b/redisearch/client.go index f071d5d..11e1875 100644 --- a/redisearch/client.go +++ b/redisearch/client.go @@ -39,7 +39,7 @@ func NewClient(addr, name string) *Client { } // NewClientFromPool creates a new Client with the given pool and index name -func NewClientFromPool(pool *redis.Pool, name string) *Client { +func NewClientFromPool(pool ConnPool, name string) *Client { ret := &Client{ pool: pool, name: name,