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
789323c9
Commit
789323c9
authored
Jul 07, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ca25c79d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
go/zodb/storage/zeo/zrpc.go
go/zodb/storage/zeo/zrpc.go
+12
-1
No files found.
go/zodb/storage/zeo/zrpc.go
View file @
789323c9
...
...
@@ -318,10 +318,21 @@ func pktDecodeM(pkb *pktBuf) (msg, error) {
m
.
flags
=
msgFlags
(
v
)
// method
m
.
method
,
b
,
err
=
msgp
.
ReadStringBytes
(
b
)
s
:=
""
switch
t
:=
msgp
.
NextType
(
b
);
t
{
case
msgp
.
StrType
:
s
,
b
,
err
=
msgp
.
ReadStringBytes
(
b
)
case
msgp
.
BinType
:
var
x
[]
byte
x
,
b
,
err
=
msgp
.
ReadBytesZC
(
b
)
s
=
string
(
x
)
default
:
err
=
fmt
.
Errorf
(
"got %s; expected str|bin"
,
t
)
}
if
err
!=
nil
{
return
m
,
derrf
(
".%d: method: %s"
,
m
.
msgid
,
err
)
}
m
.
method
=
s
// arg
// it is interface{} - use shamaton/msgpack since msgp does not handle
...
...
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