OleksiienkoMykyta commented on code in PR #1837:
URL:
https://github.com/apache/cassandra-gocql-driver/pull/1837#discussion_r1939084399
##########
frame.go:
##########
@@ -253,13 +262,21 @@ func (c *Consistency) UnmarshalText(text []byte) error {
*c = EachQuorum
case "LOCAL_ONE":
*c = LocalOne
+ case "SERIAL":
+ *c = Serial
+ case "LOCAL_SERIAL":
+ *c = LocalSerial
default:
return fmt.Errorf("invalid consistency %q", string(text))
}
return nil
}
+func (c Consistency) IsSerial() bool {
Review Comment:
I just wanted to provide the user with a method that helps to check whether
the consistency is Serial, but if you think it's redundant, we can merge
without it.
--
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]