mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
comment need for custom client
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
parent
23d41e0823
commit
0c4b10afb2
@ -34,6 +34,9 @@ type client struct {
|
||||
}
|
||||
|
||||
func NewClient(address string) Client {
|
||||
// We cannot use the default transport because of a bug in go's connection reuse
|
||||
// code. It causes random failures in the connection including io.EOF and connection
|
||||
// refused on 'client.Do'
|
||||
return &client{
|
||||
serverAddress: address,
|
||||
httpClient: http.Client{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user