From 2b11cf4edec11efe69313025cf2cb50213c7d577 Mon Sep 17 00:00:00 2001 From: Jacob Gadikian Date: Wed, 1 May 2024 02:35:38 +0800 Subject: [PATCH] use new instead of NewWithTimeout --- lib/lib.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lib.go b/lib/lib.go index c2ca272..47837ec 100644 --- a/lib/lib.go +++ b/lib/lib.go @@ -23,7 +23,7 @@ var visited = struct { }{nodes: make(map[string]bool)} func FetchClient(nodeAddr string) (client *http.HTTP, err error) { - client, err = http.NewWithTimeout(nodeAddr, "websocket", 500) + client, err = http.New(nodeAddr, "websocket") if err != nil { return nil, err }