mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 20:20:25 +03:00
run gofumpt cleanup across code-base (#14015)
This commit is contained in:
@@ -51,7 +51,6 @@ func setTCPParameters(network, address string, c syscall.RawConn) error {
|
||||
// Enable TCP quick ACK, John Nagle says
|
||||
// "Set TCP_QUICKACK. If you find a case where that makes things worse, let me know."
|
||||
_ = syscall.SetsockoptInt(fd, syscall.IPPROTO_TCP, unix.TCP_QUICKACK, 1)
|
||||
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -122,7 +122,6 @@ func (listener *httpListener) Addrs() (addrs []net.Addr) {
|
||||
// * listen to multiple addresses
|
||||
// * controls incoming connections only doing HTTP protocol
|
||||
func newHTTPListener(ctx context.Context, serverAddrs []string) (listener *httpListener, err error) {
|
||||
|
||||
var tcpListeners []*net.TCPListener
|
||||
|
||||
// Close all opened listeners on error
|
||||
|
||||
Reference in New Issue
Block a user