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-dms3
Commits
93872a52
Commit
93872a52
authored
Dec 08, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net/interface: use iota
parent
6040a3ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
net/interface.go
net/interface.go
+4
-4
No files found.
net/interface.go
View file @
93872a52
...
...
@@ -90,15 +90,15 @@ type Connectedness int
const
(
// NotConnected means no connection to peer, and no extra information (default)
NotConnected
Connectedness
=
0
NotConnected
Connectedness
=
iota
// Connected means has an open, live connection to peer
Connected
=
1
Connected
// CanConnect means recently connected to peer, terminated gracefully
CanConnect
=
2
CanConnect
// CannotConnect means recently attempted connecting but failed to connect.
// (should signal "made effort, failed")
CannotConnect
=
3
CannotConnect
)
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