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
+17 -17

No files matched your search

+2 -2
View File
@@ -105,8 +105,8 @@ func LinkLocalMulticastListener(ifi *net.Interface) (net.PacketConn, error) {
const ( const (
CSendQuery = iota CSendQuery = iota
CShutdown = iota CShutdown
CMessageReceived = iota CMessageReceived
) )
type MDNSInteraction struct { type MDNSInteraction struct {
+3 -3
View File
@@ -124,9 +124,9 @@ func (conn *LocalConnection) log(args ...interface{}) {
const ( const (
CSendTCP = iota CSendTCP = iota
CSetEstablished = iota CSetEstablished
CSetRemoteUDPAddr = iota CSetRemoteUDPAddr
CShutdown = iota CShutdown
) )
// Async // Async
+3 -3
View File
@@ -16,9 +16,9 @@ const (
const ( const (
CMInitiate = iota CMInitiate = iota
CMTerminated = iota CMTerminated
CMRefresh = iota CMRefresh
CMStatus = iota CMStatus
) )
type ConnectionMaker struct { type ConnectionMaker struct {
+6 -6
View File
@@ -30,12 +30,12 @@ const (
const ( const (
ProtocolConnectionEstablished = iota ProtocolConnectionEstablished = iota
ProtocolFragmentationReceived = iota ProtocolFragmentationReceived
ProtocolStartFragmentationTest = iota ProtocolStartFragmentationTest
ProtocolNonce = iota ProtocolNonce
ProtocolFetchAll = iota ProtocolFetchAll
ProtocolUpdate = iota ProtocolUpdate
ProtocolPMTUVerified = iota ProtocolPMTUVerified
) )
var ( var (
+3 -3
View File
@@ -114,9 +114,9 @@ func (peer *LocalPeer) CreateConnection(peerAddr string, acceptNewPeer bool) err
const ( const (
PAddConnection = iota PAddConnection = iota
PBroadcastTCP = iota PBroadcastTCP
PDeleteConnection = iota PDeleteConnection
PConnectionEstablished = iota PConnectionEstablished
) )
// Async: rely on the peer to shut us down if we shouldn't be adding // Async: rely on the peer to shut us down if we shouldn't be adding