use a single constructor for SentPacketHandler and ReceivedPacketHandler

This commit is contained in:
Marten Seemann 2020-02-20 18:19:52 +07:00
parent e9cdb29ef9
commit f317a471bb
6 changed files with 45 additions and 10 deletions

View file

@ -16,7 +16,7 @@ var _ = Describe("Received Packet Handler", func() {
var handler ReceivedPacketHandler
BeforeEach(func() {
handler = NewReceivedPacketHandler(
handler = newReceivedPacketHandler(
&congestion.RTTStats{},
utils.DefaultLogger,
protocol.VersionWhatever,