Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-unixfs
Commits
88cc1e2a
Commit
88cc1e2a
authored
Oct 22, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spell nit
parent
a8adf2ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
net/handshake/handshake1.go
net/handshake/handshake1.go
+1
-1
No files found.
net/handshake/handshake1.go
View file @
88cc1e2a
...
@@ -30,7 +30,7 @@ func Handshake1Msg() *pb.Handshake1 {
...
@@ -30,7 +30,7 @@ func Handshake1Msg() *pb.Handshake1 {
// ErrVersionMismatch is returned when two clients don't share a protocol version
// ErrVersionMismatch is returned when two clients don't share a protocol version
var
ErrVersionMismatch
=
errors
.
New
(
"protocol missmatch"
)
var
ErrVersionMismatch
=
errors
.
New
(
"protocol missmatch"
)
// Handshake1Compatible checks wether two versions are compatible
// Handshake1Compatible checks w
h
ether two versions are compatible
// returns nil if they are fine
// returns nil if they are fine
func
Handshake1Compatible
(
handshakeA
,
handshakeB
*
pb
.
Handshake1
)
error
{
func
Handshake1Compatible
(
handshakeA
,
handshakeB
*
pb
.
Handshake1
)
error
{
a
,
err
:=
semver
.
NewVersion
(
*
handshakeA
.
ProtocolVersion
)
a
,
err
:=
semver
.
NewVersion
(
*
handshakeA
.
ProtocolVersion
)
...
...
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