forked from quic-go/quic-go
improve alignment of some structs
This commit is contained in:
@@ -34,12 +34,12 @@ var _ = Describe("Frame logging", func() {
|
||||
|
||||
It("logs sent frames", func() {
|
||||
LogFrame(&RstStreamFrame{}, true)
|
||||
Expect(string(buf.Bytes())).To(Equal("\t-> &frames.RstStreamFrame{StreamID:0x0, ByteOffset:0x0, ErrorCode:0x0}\n"))
|
||||
Expect(string(buf.Bytes())).To(Equal("\t-> &frames.RstStreamFrame{StreamID:0x0, ErrorCode:0x0, ByteOffset:0x0}\n"))
|
||||
})
|
||||
|
||||
It("logs received frames", func() {
|
||||
LogFrame(&RstStreamFrame{}, false)
|
||||
Expect(string(buf.Bytes())).To(Equal("\t<- &frames.RstStreamFrame{StreamID:0x0, ByteOffset:0x0, ErrorCode:0x0}\n"))
|
||||
Expect(string(buf.Bytes())).To(Equal("\t<- &frames.RstStreamFrame{StreamID:0x0, ErrorCode:0x0, ByteOffset:0x0}\n"))
|
||||
})
|
||||
|
||||
It("logs stream frames", func() {
|
||||
|
||||
@@ -10,8 +10,8 @@ import (
|
||||
// A RstStreamFrame in QUIC
|
||||
type RstStreamFrame struct {
|
||||
StreamID protocol.StreamID
|
||||
ByteOffset protocol.ByteCount
|
||||
ErrorCode uint32
|
||||
ByteOffset protocol.ByteCount
|
||||
}
|
||||
|
||||
//Write writes a RST_STREAM frame
|
||||
|
||||
@@ -11,11 +11,11 @@ import (
|
||||
|
||||
// A StreamFrame of QUIC
|
||||
type StreamFrame struct {
|
||||
FinBit bool
|
||||
StreamID protocol.StreamID
|
||||
FinBit bool
|
||||
DataLenPresent bool
|
||||
Offset protocol.ByteCount
|
||||
Data []byte
|
||||
DataLenPresent bool
|
||||
}
|
||||
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user