Browse Source

Properly set the consistency when generating new sessions

Fixes gh-46
Ghais Issa 12 năm trước cách đây
mục cha
commit
8013aaede6
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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 {