Skip to content

Commit

Permalink
dont expose the conn host yet
Browse files Browse the repository at this point in the history
  • Loading branch information
Zariel committed Dec 25, 2015
1 parent 0662f0c commit a3e6499
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ type Conn struct {
version uint8
currentKeyspace string
started bool
host *HostInfo

session *Session

Expand Down Expand Up @@ -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)
}
Expand Down
1 change: 0 additions & 1 deletion session.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a3e6499

Please sign in to comment.