Remove repeated 'iota' in const lists, since Go knows what you mean
This commit is contained in:
1 parent
ad0b4a5a5a
commit
15852dfa42
5 files changed
+22
-22
No files matched your search
@@ -104,9 +104,9 @@ func LinkLocalMulticastListener(ifi *net.Interface) (net.PacketConn, error) {
|
||||
// ACTOR client API
|
||||
|
||||
const (
|
||||
CSendQuery = iota
|
||||
CShutdown = iota
|
||||
CMessageReceived = iota
|
||||
CSendQuery = iota
|
||||
CShutdown
|
||||
CMessageReceived
|
||||
)
|
||||
|
||||
type MDNSInteraction struct {
|
||||
|
||||
@@ -123,10 +123,10 @@ func (conn *LocalConnection) log(args ...interface{}) {
|
||||
// ACTOR client API
|
||||
|
||||
const (
|
||||
CSendTCP = iota
|
||||
CSetEstablished = iota
|
||||
CSetRemoteUDPAddr = iota
|
||||
CShutdown = iota
|
||||
CSendTCP = iota
|
||||
CSetEstablished
|
||||
CSetRemoteUDPAddr
|
||||
CShutdown
|
||||
)
|
||||
|
||||
// Async
|
||||
|
||||
@@ -15,10 +15,10 @@ const (
|
||||
)
|
||||
|
||||
const (
|
||||
CMInitiate = iota
|
||||
CMTerminated = iota
|
||||
CMRefresh = iota
|
||||
CMStatus = iota
|
||||
CMInitiate = iota
|
||||
CMTerminated
|
||||
CMRefresh
|
||||
CMStatus
|
||||
)
|
||||
|
||||
type ConnectionMaker struct {
|
||||
|
||||
+7
-7
@@ -29,13 +29,13 @@ const (
|
||||
)
|
||||
|
||||
const (
|
||||
ProtocolConnectionEstablished = iota
|
||||
ProtocolFragmentationReceived = iota
|
||||
ProtocolStartFragmentationTest = iota
|
||||
ProtocolNonce = iota
|
||||
ProtocolFetchAll = iota
|
||||
ProtocolUpdate = iota
|
||||
ProtocolPMTUVerified = iota
|
||||
ProtocolConnectionEstablished = iota
|
||||
ProtocolFragmentationReceived
|
||||
ProtocolStartFragmentationTest
|
||||
ProtocolNonce
|
||||
ProtocolFetchAll
|
||||
ProtocolUpdate
|
||||
ProtocolPMTUVerified
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -113,10 +113,10 @@ func (peer *LocalPeer) CreateConnection(peerAddr string, acceptNewPeer bool) err
|
||||
// ACTOR client API
|
||||
|
||||
const (
|
||||
PAddConnection = iota
|
||||
PBroadcastTCP = iota
|
||||
PDeleteConnection = iota
|
||||
PConnectionEstablished = iota
|
||||
PAddConnection = iota
|
||||
PBroadcastTCP
|
||||
PDeleteConnection
|
||||
PConnectionEstablished
|
||||
)
|
||||
|
||||
// Async: rely on the peer to shut us down if we shouldn't be adding
|
||||
|
||||
Reference in new issue
Block a user