mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-06 00:38:08 +08:00
net/interface: use iota
This commit is contained in:
parent
6040a3efcc
commit
93872a52fc
@ -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
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user