Skip to content

Commit fc79497

Browse files
authored
sync: Go 1.21.0 breaking change
Sync up a breaking change made by Go 1.21.0.
1 parent f255bcb commit fc79497

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

u_quic.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func (q *UQUICConn) HandleData(level QUICEncryptionLevel, data []byte) error {
129129
// SendSessionTicket sends a session ticket to the client.
130130
// It produces connection events, which may be read with NextEvent.
131131
// Currently, it can only be called once.
132-
func (q *UQUICConn) SendSessionTicket(earlyData bool) error {
132+
func (q *UQUICConn) SendSessionTicket(opts QUICSessionTicketOptions) error {
133133
c := q.conn
134134
if !c.isHandshakeComplete.Load() {
135135
return quicError(errors.New("tls: SendSessionTicket called before handshake completed"))
@@ -141,7 +141,7 @@ func (q *UQUICConn) SendSessionTicket(earlyData bool) error {
141141
return quicError(errors.New("tls: SendSessionTicket called multiple times"))
142142
}
143143
q.sessionTicketSent = true
144-
return quicError(c.sendSessionTicket(earlyData))
144+
return quicError(c.sendSessionTicket(opts.EarlyData))
145145
}
146146

147147
// ConnectionState returns basic TLS details about the connection.

0 commit comments

Comments
 (0)