Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
30a06c97
Commit
30a06c97
authored
Jul 09, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
8b51a7b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
go/zodb/storage/zeo/marshal.go
go/zodb/storage/zeo/marshal.go
+7
-1
No files found.
go/zodb/storage/zeo/marshal.go
View file @
30a06c97
...
@@ -89,7 +89,13 @@ func pktEncodeM(m msg) *pktBuf {
...
@@ -89,7 +89,13 @@ func pktEncodeM(m msg) *pktBuf {
// arg
// arg
// it is interface{} - use shamaton/msgpack since msgp does not handle
// it is interface{} - use shamaton/msgpack since msgp does not handle
// arbitrary interfaces well.
// arbitrary interfaces well.
dataArg
,
err
:=
msgpack
.
Encode
(
m
.
arg
)
// XXX shamaton/msgpack encodes tuple(nil) as nil, not empty tuple
arg
:=
m
.
arg
tup
,
ok
:=
arg
.
(
tuple
)
if
ok
&&
tup
==
nil
{
arg
=
tuple
{}
}
dataArg
,
err
:=
msgpack
.
Encode
(
arg
)
if
err
!=
nil
{
if
err
!=
nil
{
panic
(
err
)
// all our types are expected to be supported by msgpack
panic
(
err
)
// all our types are expected to be supported by msgpack
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment