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 2c1a1a6 commit f236267
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config.go
Expand Up @@ -261,10 +261,10 @@ type Config struct {
// queue to apply the warning and max depth.
QueueCheckInterval 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 f236267

Please sign in to comment.