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 ea49498 commit 4cd9b96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions v2/bolt_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ type Options struct {
// with caution.
NoSync bool

// 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 4cd9b96

Please sign in to comment.