Kaynağa Gözat

Properly set the consistency when generating new sessions

Fixes gh-46
Ghais Issa 12 yıl önce
ebeveyn
işleme
8013aaede6
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  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 {