net/interface: use iota
Juan Batiz-Benet committed
Dec 8, 2014 at 21:12 UTC
93872a52fc1f2cd95fd50ee9f4837a56d5f896d2
1 file changed
+4
-4
net/interface.go
+4
-4
@@ -90,15 +90,15 @@ type Connectedness int
90
91
const (
92
// NotConnected means no connection to peer, and no extra information (default)
93
- NotConnected Connectedness = 0
93
+ NotConnected Connectedness = iota
94
95
// Connected means has an open, live connection to peer
96
- Connected = 1
96
+ Connected
97
98
// CanConnect means recently connected to peer, terminated gracefully
99
- CanConnect = 2
99
+ CanConnect
100
101
// CannotConnect means recently attempted connecting but failed to connect.
102
// (should signal "made effort, failed")
103
- CannotConnect = 3
103
+ CannotConnect
104
)