瀏覽代碼

Fail fast if no seeds are available

Chris Bannister 11 年之前
父節點
當前提交
db852cdf07
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cluster.go

+ 1 - 1
cluster.go

@@ -102,7 +102,7 @@ func (cfg *ClusterConfig) CreateSession() (*Session, error) {
 	stmtsLRU.mu.Unlock()
 
 	//See if there are any connections in the pool
-	if pool.Size() > 0 || cfg.DiscoverHosts {
+	if pool.Size() > 0 {
 		s := NewSession(pool, *cfg)
 		s.SetConsistency(cfg.Consistency)