Skip to content

Commit

Permalink
Removed upper bound protocol validation
Browse files Browse the repository at this point in the history
It will automatically be negotiated to a valid value using the control
connection and it's one more place in the code that needs to be updated.
  • Loading branch information
Michael Penick committed Oct 20, 2015
1 parent 4169398 commit e19e9b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void cass_cluster_set_ssl(CassCluster* cluster,

CassError cass_cluster_set_protocol_version(CassCluster* cluster,
int protocol_version) {
if (protocol_version < 1 || protocol_version > 3) {
if (protocol_version < 1) {
return CASS_ERROR_LIB_BAD_PARAMS;
}
cluster->config().set_protocol_version(protocol_version);
Expand Down

0 comments on commit e19e9b7

Please sign in to comment.