소스 검색

dont expose the conn host yet

Chris Bannister 10 년 전
부모
커밋
a3e64991c8
2개의 변경된 파일0개의 추가작업 그리고 9개의 파일을 삭제
  1. 0 8
      conn.go
  2. 0 1
      session.go

+ 0 - 8
conn.go

@@ -131,7 +131,6 @@ type Conn struct {
 	version         uint8
 	currentKeyspace string
 	started         bool
-	host            *HostInfo
 
 	session *Session
 
@@ -192,13 +191,6 @@ func Connect(addr string, cfg *ConnConfig, errorHandler ConnErrorHandler, sessio
 		streams:      streams.New(cfg.ProtoVersion),
 	}
 
-	host, _, err := net.SplitHostPort(addr)
-	if err != nil {
-		conn.Close()
-		return nil, err
-	}
-	c.host = session.ring.getHost(host)
-
 	if cfg.Keepalive > 0 {
 		c.setKeepalive(cfg.Keepalive)
 	}

+ 0 - 1
session.go

@@ -289,7 +289,6 @@ func (s *Session) executeQuery(qry *Query) *Iter {
 
 		//Exit for loop if the query was successful
 		if iter.err == nil {
-			iter.host = conn.host
 			host.Mark(nil)
 			break
 		}