forked from quic-go/quic-go
embed the packetInfo in the receivedPacket struct
This avoid allocating the packetInfo struct when receiving a packet.
This commit is contained in:
@@ -19,7 +19,7 @@ var _ = Describe("Connection (for sending packets)", func() {
|
||||
packetConn = NewMockPacketConn(mockCtrl)
|
||||
rawConn, err := wrapConn(packetConn)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
c = newSendConn(rawConn, addr, nil)
|
||||
c = newSendConnWithPacketInfo(rawConn, addr, packetInfo{})
|
||||
})
|
||||
|
||||
It("writes", func() {
|
||||
|
||||
Reference in New Issue
Block a user