From d79654935a0105b6e3a17e0d4c9f3cac6697cd08 Mon Sep 17 00:00:00 2001 From: Christopher Swenson Date: Tue, 24 Oct 2023 09:51:15 -0700 Subject: [PATCH] Clarify MsgpackUseNewTimeFormat --- net_transport.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net_transport.go b/net_transport.go index 2e084410..bc34285e 100644 --- a/net_transport.go +++ b/net_transport.go @@ -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 }