瀏覽代碼

fix rebase

Chris Bannister 10 年之前
父節點
當前提交
5e3dfa3e76
共有 3 個文件被更改,包括 2 次插入7 次删除
  1. 1 5
      control.go
  2. 1 1
      events.go
  3. 0 1
      session.go

+ 1 - 5
control.go

@@ -15,11 +15,7 @@ import (
 // Ensure that the atomic variable is aligned to a 64bit boundary
 // so that atomic operations can be applied on 32bit architectures.
 type controlConn struct {
-	connecting uint64
-
-	session *Session
-
-	conn atomic.Value
+	connecting int64
 
 	session *Session
 	conn    atomic.Value

+ 1 - 1
events.go

@@ -110,7 +110,7 @@ func (s *Session) handleNodeEvent(frames []frame) {
 		}
 	}
 
-	for addr, f := range events {
+	for _, f := range events {
 		switch f.change {
 		case "NEW_NODE":
 			s.handleNewNode(f.host, f.port)

+ 0 - 1
session.go

@@ -10,7 +10,6 @@ import (
 	"errors"
 	"fmt"
 	"io"
-	"log"
 	"net"
 	"strconv"
 	"strings"