Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LightKone
antidote-go-client
Commits
f541b87c
Commit
f541b87c
authored
Mar 20, 2018
by
Mathias Weber
Browse files
off by one error
parent
9621aabf
Changes
1
Hide whitespace changes
Inline
Side-by-side
coder.go
View file @
f541b87c
...
...
@@ -70,7 +70,7 @@ func encodeMsg(message proto.Message, msgCode byte, writer io.Writer) (err error
msgsize
:=
len
(
msg
)
buf
:=
make
([]
byte
,
5
)
binary
.
BigEndian
.
PutUint32
(
buf
[
0
:
4
],
uint32
(
msgsize
))
buf
[
5
]
=
msgCode
buf
[
4
]
=
msgCode
writer
.
Write
(
buf
)
writer
.
Write
(
msg
)
return
nil
...
...
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