Skip to content

Commit

Permalink
Set timeout in statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Nov 24, 2023
1 parent 90e8643 commit f4bdd29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/ilios/statement.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ void statement_default_config(CassandraStatement *cassandra_statement)
{
VALUE config = rb_cvar_get(mCassandra, id_cvar_config);

cass_statement_set_request_timeout(cassandra_statement->statement, NUM2INT(rb_hash_aref(config, sym_timeout_ms)));
cass_statement_set_paging_size(cassandra_statement->statement, NUM2INT(rb_hash_aref(config, sym_page_size)));
}

Expand Down

0 comments on commit f4bdd29

Please sign in to comment.