ソースを参照

Properly set the consistency when generating new sessions

Fixes gh-46
Ghais Issa 12 年 前
コミット
8013aaede6
1 ファイル変更3 行追加1 行削除
  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 {