Skip to content

Commit 71297f9

Browse files
authored
Merge pull request #289 from muzarski/allow-serial-consistency-to-consistency-conversion
CassConsistency: adjust converion to serial variants of Consistency
2 parents 8d402b0 + a1a809c commit 71297f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scylla-rust-wrapper/src/cass_types.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,8 @@ impl TryFrom<CassConsistency> for Consistency {
845845
CassConsistency::CASS_CONSISTENCY_LOCAL_QUORUM => Ok(Consistency::LocalQuorum),
846846
CassConsistency::CASS_CONSISTENCY_EACH_QUORUM => Ok(Consistency::EachQuorum),
847847
CassConsistency::CASS_CONSISTENCY_LOCAL_ONE => Ok(Consistency::LocalOne),
848+
CassConsistency::CASS_CONSISTENCY_LOCAL_SERIAL => Ok(Consistency::LocalSerial),
849+
CassConsistency::CASS_CONSISTENCY_SERIAL => Ok(Consistency::Serial),
848850
_ => Err(()),
849851
}
850852
}

0 commit comments

Comments
 (0)