Skip to content

Commit

Permalink
Remove support for Go 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
garyburd authored Jan 2, 2022
1 parent f0643a3 commit 4fad403
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 91 deletions.
7 changes: 7 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,3 +384,10 @@ func (d *Dialer) DialContext(ctx context.Context, urlStr string, requestHeader h
netConn = nil // to avoid close in defer.
return conn, resp, nil
}

func cloneTLSConfig(cfg *tls.Config) *tls.Config {
if cfg == nil {
return &tls.Config{}
}
return cfg.Clone()
}
17 changes: 0 additions & 17 deletions client_clone.go

This file was deleted.

39 changes: 0 additions & 39 deletions client_clone_legacy.go

This file was deleted.

6 changes: 6 additions & 0 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,12 @@ func (c *Conn) write(frameType int, deadline time.Time, buf0, buf1 []byte) error
return nil
}

func (c *Conn) writeBufs(bufs ...[]byte) error {
b := net.Buffers(bufs)
_, err := b.WriteTo(c.conn)
return err
}

// WriteControl writes a control message with the given deadline. The allowed
// message types are CloseMessage, PingMessage and PongMessage.
func (c *Conn) WriteControl(messageType int, data []byte, deadline time.Time) error {
Expand Down
16 changes: 0 additions & 16 deletions conn_write.go

This file was deleted.

19 changes: 0 additions & 19 deletions conn_write_legacy.go

This file was deleted.

0 comments on commit 4fad403

Please sign in to comment.