瀏覽代碼

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 {