瀏覽代碼

Merge pull request #52 from ghais/master

Properly set the consistency when generating new sessions
Christoph Hack 12 年之前
父節點
當前提交
f228d571f5
共有 2 個文件被更改,包括 5 次插入2 次删除
  1. 2 1
      AUTHORS
  2. 3 1
      cluster.go

+ 2 - 1
AUTHORS

@@ -6,4 +6,5 @@ Thorsten von Eicken <tve@rightscale.com>
 Matt Robenolt <mattr@disqus.com>
 Phillip Couto <phillip.couto@stemstudios.com>
 Niklas Korz <korz.niklask@gmail.com>
-Nimi Wariboko Jr <nimi@channelmeter.com>
+Nimi Wariboko Jr <nimi@channelmeter.com>
+Ghais Issa <ghais.issa@gmail.com>

+ 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 {