Skip to content

Commit 34fbe21

Browse files
committed
Replace interface{} with any
1 parent 8bf2c71 commit 34fbe21

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

conn.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ type Conn struct {
6565
nextConn netctx.PacketConn // Embedded Conn, typically a udpconn we read/write from
6666
fragmentBuffer *fragmentBuffer // out-of-order and missing fragment handling
6767
handshakeCache *handshakeCache // caching of handshake messages for verifyData generation
68-
decrypted chan interface{} // Decrypted Application Data or error, pull by calling `Read`
68+
decrypted chan any // Decrypted Application Data or error, pull by calling `Read`
6969
rAddr net.Addr
7070
state State // Internal state
7171

@@ -214,7 +214,7 @@ func createConn(
214214
maximumTransmissionUnit: mtu,
215215
paddingLengthGenerator: paddingLengthGenerator,
216216

217-
decrypted: make(chan interface{}, 1),
217+
decrypted: make(chan any, 1),
218218
log: logger,
219219

220220
readDeadline: deadline.New(),
@@ -725,7 +725,7 @@ func (c *Conn) fragmentHandshake(dtlsHandshake *handshake.Handshake) ([][]byte,
725725
}
726726

727727
var poolReadBuffer = sync.Pool{ //nolint:gochecknoglobals
728-
New: func() interface{} {
728+
New: func() any {
729729
b := make([]byte, inboundBufferSize)
730730

731731
return &b

0 commit comments

Comments
 (0)