Procházet zdrojové kódy

Fail fast if no seeds are available

Chris Bannister před 11 roky
rodič
revize
db852cdf07
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)