Merge pull request #337 from bboreham/master
Remove repeated 'iota' in const lists, since Go knows what you mean
This commit is contained in:
commit
eb0b635bdd
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
|
// ACTOR client API
|
||||||
|
|
||||||
const (
|
const (
|
||||||
CSendQuery = iota
|
CSendQuery = iota
|
||||||
CShutdown = iota
|
CShutdown
|
||||||
CMessageReceived = iota
|
CMessageReceived
|
||||||
)
|
)
|
||||||
|
|
||||||
type MDNSInteraction struct {
|
type MDNSInteraction struct {
|
||||||
|
|||||||
@@ -123,10 +123,10 @@ func (conn *LocalConnection) log(args ...interface{}) {
|
|||||||
// ACTOR client API
|
// ACTOR client API
|
||||||
|
|
||||||
const (
|
const (
|
||||||
CSendTCP = iota
|
CSendTCP = iota
|
||||||
CSetEstablished = iota
|
CSetEstablished
|
||||||
CSetRemoteUDPAddr = iota
|
CSetRemoteUDPAddr
|
||||||
CShutdown = iota
|
CShutdown
|
||||||
)
|
)
|
||||||
|
|
||||||
// Async
|
// Async
|
||||||
|
|||||||
@@ -15,10 +15,10 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
CMInitiate = iota
|
CMInitiate = iota
|
||||||
CMTerminated = iota
|
CMTerminated
|
||||||
CMRefresh = iota
|
CMRefresh
|
||||||
CMStatus = iota
|
CMStatus
|
||||||
)
|
)
|
||||||
|
|
||||||
type ConnectionMaker struct {
|
type ConnectionMaker struct {
|
||||||
|
|||||||
+7
-7
@@ -29,13 +29,13 @@ 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 (
|
||||||
|
|||||||
@@ -113,10 +113,10 @@ func (peer *LocalPeer) CreateConnection(peerAddr string, acceptNewPeer bool) err
|
|||||||
// ACTOR client API
|
// ACTOR client API
|
||||||
|
|
||||||
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
|
||||||
|
|||||||
Reference in new issue
Block a user