Explorar el Código

Properly set the consistency when generating new sessions

Fixes gh-46
Ghais Issa hace 12 años
padre
commit
8013aaede6
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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 {