Sfoglia il codice sorgente

Properly set the consistency when generating new sessions

Fixes gh-46
Ghais Issa 12 anni fa
parent
commit
8013aaede6
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      cluster.go

+ 3 - 1
cluster.go

@@ -72,7 +72,9 @@ func (cfg *ClusterConfig) CreateSession() *Session {
 		}
 	}
 	impl.wgStart.Wait()
-	return NewSession(impl)
+	s := NewSession(impl)
+	s.SetConsistency(cfg.Consistency)
+	return s
 }
 
 type clusterImpl struct {