diff --git a/contrib/codecs/http/client.go b/contrib/codecs/http/client.go index ae96078e76b2f2aa0f8b0a1eff5a5028922ecb5f..137816a15aede372acdfb3ce736d34971340f70d 100644 --- a/contrib/codecs/http/client.go +++ b/contrib/codecs/http/client.go @@ -10,7 +10,6 @@ import ( "net/http" "sync" "sync/atomic" - "time" "gfx.cafe/open/jrpc/pkg/codec" @@ -27,12 +26,6 @@ var ( errDead = errors.New("connection lost") ) -const ( - // Timeouts - defaultDialTimeout = 10 * time.Second // used if context has no deadline - subscribeTimeout = 5 * time.Second // overall timeout eth_subscribe, rpc_modules calls -) - var _ codec.Conn = (*Client)(nil) // Client represents a connection to an RPC server.