From 93872a52fc1f2cd95fd50ee9f4837a56d5f896d2 Mon Sep 17 00:00:00 2001 From: Juan Batiz-Benet Date: Mon, 8 Dec 2014 21:12:58 -0800 Subject: [PATCH] net/interface: use iota --- net/interface.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/interface.go b/net/interface.go index f474664c6..01f7fd8ee 100644 --- a/net/interface.go +++ b/net/interface.go @@ -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 )