Преглед на файлове

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)