提交 93872a52 作者: Juan Batiz-Benet

net/interface: use iota

上级 6040a3ef
......@@ -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
)
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论