hid: rename connCloseWrite to connCloseWriter
This commit is contained in:
parent
6b45865e3d
commit
62418ebb54
|
@ -563,7 +563,7 @@ func ircIsValidFingerprint(fp string) bool {
|
||||||
|
|
||||||
// --- Clients (equals users) --------------------------------------------------
|
// --- Clients (equals users) --------------------------------------------------
|
||||||
|
|
||||||
type connCloseWrite interface {
|
type connCloseWriter interface {
|
||||||
net.Conn
|
net.Conn
|
||||||
CloseWrite() error
|
CloseWrite() error
|
||||||
}
|
}
|
||||||
|
@ -589,7 +589,7 @@ const (
|
||||||
type client struct {
|
type client struct {
|
||||||
transport net.Conn // underlying connection
|
transport net.Conn // underlying connection
|
||||||
tls *tls.Conn // TLS, if detected
|
tls *tls.Conn // TLS, if detected
|
||||||
conn connCloseWrite // high-level connection
|
conn connCloseWriter // high-level connection
|
||||||
recvQ []byte // unprocessed input
|
recvQ []byte // unprocessed input
|
||||||
sendQ []byte // unprocessed output
|
sendQ []byte // unprocessed output
|
||||||
reading bool // whether a reading goroutine is running
|
reading bool // whether a reading goroutine is running
|
||||||
|
@ -2853,7 +2853,7 @@ func ircProcessMessage(c *client, msg *message, raw string) {
|
||||||
// Handle the results from initializing the client's connection.
|
// Handle the results from initializing the client's connection.
|
||||||
func (c *client) onPrepared(host string, isTLS bool) {
|
func (c *client) onPrepared(host string, isTLS bool) {
|
||||||
if !isTLS {
|
if !isTLS {
|
||||||
c.conn = c.transport.(connCloseWrite)
|
c.conn = c.transport.(connCloseWriter)
|
||||||
} else if tlsConf != nil {
|
} else if tlsConf != nil {
|
||||||
c.tls = tls.Server(c.transport, tlsConf)
|
c.tls = tls.Server(c.transport, tlsConf)
|
||||||
c.conn = c.tls
|
c.conn = c.tls
|
||||||
|
|
Loading…
Reference in New Issue