Skip to content

Commit

Permalink
sync: Go 1.21.0 breaking change
Browse files Browse the repository at this point in the history
Sync up a breaking change made by Go 1.21.0.
  • Loading branch information
gaukas committed Aug 28, 2023
1 parent f255bcb commit fc79497
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions u_quic.go
Expand Up @@ -129,7 +129,7 @@ func (q *UQUICConn) HandleData(level QUICEncryptionLevel, data []byte) error {
// SendSessionTicket sends a session ticket to the client.
// It produces connection events, which may be read with NextEvent.
// Currently, it can only be called once.
func (q *UQUICConn) SendSessionTicket(earlyData bool) error {
func (q *UQUICConn) SendSessionTicket(opts QUICSessionTicketOptions) error {
c := q.conn
if !c.isHandshakeComplete.Load() {
return quicError(errors.New("tls: SendSessionTicket called before handshake completed"))
Expand All @@ -141,7 +141,7 @@ func (q *UQUICConn) SendSessionTicket(earlyData bool) error {
return quicError(errors.New("tls: SendSessionTicket called multiple times"))
}
q.sessionTicketSent = true
return quicError(c.sendSessionTicket(earlyData))
return quicError(c.sendSessionTicket(opts.EarlyData))
}

// ConnectionState returns basic TLS details about the connection.
Expand Down

0 comments on commit fc79497

Please sign in to comment.