Skip to content

Commit

Permalink
Clarify MsgpackUseNewTimeFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Swenson committed Oct 24, 2023
1 parent fa518ae commit d796549
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions net_transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ type NetworkTransportConfig struct {
// the timeout by (SnapshotSize / TimeoutScale).
Timeout time.Duration

// MsgpackUseNewTimeFormat is used to force the underlying msgpack codec to
// use the newer format of time.Time when encoding, used in versions <=0.5.5
// by default. Decoding is not affected, as all decoders know how to decode
// both formats.
// MsgpackUseNewTimeFormat when set to true, force the underlying msgpack
// codec to use the new format of time.Time when encoding (used in
// go-msgpack v1.1.5 by default). Decoding is not affected, as all
// go-msgpack v2.1.0+ decoders know how to decode both formats.
MsgpackUseNewTimeFormat bool
}

Expand Down

0 comments on commit d796549

Please sign in to comment.