Skip to content

Commit

Permalink
use new instead of NewWithTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Apr 30, 2024
1 parent c8e6d4d commit 2b11cf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 2b11cf4

Please sign in to comment.