Merge pull request #337 from bboreham/master

Remove repeated 'iota' in const lists, since Go knows what you mean
This commit is contained in:
rade committed 2015-01-09 16:31:11 +00:00
commit eb0b635bdd
5 files changed
+22 -22

No files matched your search

+3 -3
View File
@@ -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 {
+4 -4
View File
@@ -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
+4 -4
View File
@@ -15,10 +15,10 @@ const (
)
const (
CMInitiate = iota
CMTerminated = iota
CMRefresh = iota
CMStatus = iota
CMInitiate = iota
CMTerminated
CMRefresh
CMStatus
)
type ConnectionMaker struct {
+7 -7
View File
@@ -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 (
+4 -4
View File
@@ -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