File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release.
2222- msgpack.v2 support (#236 )
2323- pool/RoundRobinStrategy (#158 )
2424- DeadlineIO (#158 )
25+ - UUID_extId (#158 )
2526
2627### Fixed
2728
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import (
2222)
2323
2424// UUID external type.
25- const UUID_extId = 2
25+ const uuid_extID = 2
2626
2727func encodeUUID (e * msgpack.Encoder , v reflect.Value ) error {
2828 id := v .Interface ().(uuid.UUID )
@@ -63,12 +63,12 @@ func decodeUUID(d *msgpack.Decoder, v reflect.Value) error {
6363
6464func init () {
6565 msgpack .Register (reflect .TypeOf ((* uuid .UUID )(nil )).Elem (), encodeUUID , decodeUUID )
66- msgpack .RegisterExtEncoder (UUID_extId , uuid.UUID {},
66+ msgpack .RegisterExtEncoder (uuid_extID , uuid.UUID {},
6767 func (e * msgpack.Encoder , v reflect.Value ) ([]byte , error ) {
6868 uuid := v .Interface ().(uuid.UUID )
6969 return uuid .MarshalBinary ()
7070 })
71- msgpack .RegisterExtDecoder (UUID_extId , uuid.UUID {},
71+ msgpack .RegisterExtDecoder (uuid_extID , uuid.UUID {},
7272 func (d * msgpack.Decoder , v reflect.Value , extLen int ) error {
7373 return decodeUUID (d , v )
7474 })
You can’t perform that action at this time.
0 commit comments