forked from quic-go/quic-go
rename StreamDataBlockedFrame.DataLimit to MaximumStreamData
This commit is contained in:
@@ -196,7 +196,7 @@ func marshalDataBlockedFrame(enc *gojay.Encoder, f *wire.DataBlockedFrame) {
|
||||
func marshalStreamDataBlockedFrame(enc *gojay.Encoder, f *wire.StreamDataBlockedFrame) {
|
||||
enc.StringKey("frame_type", "stream_data_blocked")
|
||||
enc.Int64Key("stream_id", int64(f.StreamID))
|
||||
enc.Int64Key("limit", int64(f.DataLimit))
|
||||
enc.Int64Key("limit", int64(f.MaximumStreamData))
|
||||
}
|
||||
|
||||
func marshalStreamsBlockedFrame(enc *gojay.Encoder, f *wire.StreamsBlockedFrame) {
|
||||
|
||||
@@ -227,8 +227,8 @@ var _ = Describe("Frames", func() {
|
||||
It("marshals STREAM_DATA_BLOCKED frames", func() {
|
||||
check(
|
||||
&wire.StreamDataBlockedFrame{
|
||||
StreamID: 42,
|
||||
DataLimit: 1337,
|
||||
StreamID: 42,
|
||||
MaximumStreamData: 1337,
|
||||
},
|
||||
map[string]interface{}{
|
||||
"frame_type": "stream_data_blocked",
|
||||
|
||||
Reference in New Issue
Block a user