mirror of
https://github.com/tendermint/tendermint.git
synced 2026-10-01 04:05:45 +00:00
lint: cleanup pending lint errors (#7237)
This commit is contained in:
@@ -39,7 +39,7 @@ func TCPListenerTimeoutReadWrite(timeout time.Duration) TCPListenerOption {
|
||||
// tcpListener implements net.Listener.
|
||||
var _ net.Listener = (*TCPListener)(nil)
|
||||
|
||||
// TCPListener wraps a *net.TCPListener to standardise protocol timeouts
|
||||
// TCPListener wraps a *net.TCPListener to standardize protocol timeouts
|
||||
// and potentially other tuning parameters. It also returns encrypted connections.
|
||||
type TCPListener struct {
|
||||
*net.TCPListener
|
||||
@@ -104,7 +104,7 @@ func UnixListenerTimeoutReadWrite(timeout time.Duration) UnixListenerOption {
|
||||
return func(ul *UnixListener) { ul.timeoutReadWrite = timeout }
|
||||
}
|
||||
|
||||
// UnixListener wraps a *net.UnixListener to standardise protocol timeouts
|
||||
// UnixListener wraps a *net.UnixListener to standardize protocol timeouts
|
||||
// and potentially other tuning parameters. It returns unencrypted connections.
|
||||
type UnixListener struct {
|
||||
*net.UnixListener
|
||||
@@ -151,7 +151,7 @@ func (ln *UnixListener) Accept() (net.Conn, error) {
|
||||
// timeoutConn implements net.Conn.
|
||||
var _ net.Conn = (*timeoutConn)(nil)
|
||||
|
||||
// timeoutConn wraps a net.Conn to standardise protocol timeouts / deadline resets.
|
||||
// timeoutConn wraps a net.Conn to standardize protocol timeouts / deadline resets.
|
||||
type timeoutConn struct {
|
||||
net.Conn
|
||||
timeout time.Duration
|
||||
|
||||
Reference in New Issue
Block a user