From cf45659c491022db10cccf55c7a02515c1fac299 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Thu, 26 Mar 2020 15:40:14 +0700 Subject: [PATCH] update the qlog field names in the NEW_CONNECTION_ID frame --- qlog/frame.go | 2 +- qlog/frame_test.go | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/qlog/frame.go b/qlog/frame.go index a566941a4..9926cf2e3 100644 --- a/qlog/frame.go +++ b/qlog/frame.go @@ -211,7 +211,7 @@ func marshalNewConnectionIDFrame(enc *gojay.Encoder, f *wire.NewConnectionIDFram enc.Int64Key("retire_prior_to", int64(f.RetirePriorTo)) enc.IntKey("length", f.ConnectionID.Len()) enc.StringKey("connection_id", connectionID(f.ConnectionID).String()) - enc.StringKey("reset_token", fmt.Sprintf("%x", f.StatelessResetToken)) + enc.StringKey("stateless_reset_token", fmt.Sprintf("%x", f.StatelessResetToken)) } func marshalRetireConnectionIDFrame(enc *gojay.Encoder, f *wire.RetireConnectionIDFrame) { diff --git a/qlog/frame_test.go b/qlog/frame_test.go index 962fc6c61..79d9a8543 100644 --- a/qlog/frame_test.go +++ b/qlog/frame_test.go @@ -259,12 +259,12 @@ var _ = Describe("Frames", func() { StatelessResetToken: [16]byte{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf}, }, map[string]interface{}{ - "frame_type": "new_connection_id", - "sequence_number": 42, - "retire_prior_to": 24, - "length": 4, - "connection_id": "deadbeef", - "reset_token": "000102030405060708090a0b0c0d0e0f", + "frame_type": "new_connection_id", + "sequence_number": 42, + "retire_prior_to": 24, + "length": 4, + "connection_id": "deadbeef", + "stateless_reset_token": "000102030405060708090a0b0c0d0e0f", }, ) })