forked from quic-go/quic-go
qlogwriter: pass the event time to Event.Encode (#5362)
This is needed for events such as recovery:loss_timer_updated, which contain the timer expiration timestamp encoded as a difference from the event time.
This commit is contained in:
@@ -38,6 +38,18 @@ func init() {
|
||||
}
|
||||
}
|
||||
|
||||
type encoderHelper struct {
|
||||
enc *jsontext.Encoder
|
||||
err error
|
||||
}
|
||||
|
||||
func (h *encoderHelper) WriteToken(t jsontext.Token) {
|
||||
if h.err != nil {
|
||||
return
|
||||
}
|
||||
h.err = h.enc.WriteToken(t)
|
||||
}
|
||||
|
||||
type traceHeader struct {
|
||||
VantagePointType string
|
||||
GroupID *ConnectionID
|
||||
|
||||
Reference in New Issue
Block a user