diff options
author | Přemysl Janouch <p@janouch.name> | 2018-08-06 12:06:42 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2018-08-06 12:06:42 +0200 |
commit | 09d7a10b6997c805f87b3f6fae2a8de162b16e12 (patch) | |
tree | 95fe28c3f66eca2ab8f6bca1b3a383f02f7f01b4 /xS | |
parent | e9bcd0fa53b7213c13b9b223b66a6e7c55056973 (diff) | |
download | xK-09d7a10b6997c805f87b3f6fae2a8de162b16e12.tar.gz xK-09d7a10b6997c805f87b3f6fae2a8de162b16e12.tar.xz xK-09d7a10b6997c805f87b3f6fae2a8de162b16e12.zip |
hid: rename connCloseWrite to connCloseWriter
Diffstat (limited to 'xS')
-rw-r--r-- | xS/main.go | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -563,7 +563,7 @@ func ircIsValidFingerprint(fp string) bool { // --- Clients (equals users) -------------------------------------------------- -type connCloseWrite interface { +type connCloseWriter interface { net.Conn CloseWrite() error } @@ -587,15 +587,15 @@ const ( ) type client struct { - transport net.Conn // underlying connection - tls *tls.Conn // TLS, if detected - conn connCloseWrite // high-level connection - recvQ []byte // unprocessed input - sendQ []byte // unprocessed output - reading bool // whether a reading goroutine is running - writing bool // whether a writing goroutine is running - closing bool // whether we're closing the connection - killTimer *time.Timer // hard kill timeout + transport net.Conn // underlying connection + tls *tls.Conn // TLS, if detected + conn connCloseWriter // high-level connection + recvQ []byte // unprocessed input + sendQ []byte // unprocessed output + reading bool // whether a reading goroutine is running + writing bool // whether a writing goroutine is running + closing bool // whether we're closing the connection + killTimer *time.Timer // hard kill timeout opened time.Time // when the connection was opened nSentMessages uint // number of sent messages total @@ -2853,7 +2853,7 @@ func ircProcessMessage(c *client, msg *message, raw string) { // Handle the results from initializing the client's connection. func (c *client) onPrepared(host string, isTLS bool) { if !isTLS { - c.conn = c.transport.(connCloseWrite) + c.conn = c.transport.(connCloseWriter) } else if tlsConf != nil { c.tls = tls.Server(c.transport, tlsConf) c.conn = c.tls |