ribaraka commented on code in PR #1837:
URL: 
https://github.com/apache/cassandra-gocql-driver/pull/1837#discussion_r1840647750


##########
session.go:
##########
@@ -144,6 +144,10 @@ func NewSession(cfg ClusterConfig) (*Session, error) {
                return nil, errors.New("Can't use both Authenticator and 
AuthProvider in cluster config.")
        }
 
+       if cfg.SerialConsistency > 0 && !cfg.SerialConsistency.IsSerial() {
+               return nil, fmt.Errorf("the default SerialConsistency level is 
not allowed to be anything else but SERIAL or LOCAL_SERIAL. Recived value: %v", 
cfg.SerialConsistency)
+       }

Review Comment:
   And overall, how about adding another test to verify that these two 
consistency levels are allowed for use?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to