File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -115,9 +115,12 @@ pub fn build_session_builder(
115
115
116
116
#[ no_mangle]
117
117
pub unsafe extern "C" fn cass_cluster_new ( ) -> * mut CassCluster {
118
- // According to `cassandra.h` the default CPP driver's consistency for statements is LOCAL_ONE.
119
- let default_execution_profile_builder =
120
- ExecutionProfileBuilder :: default ( ) . consistency ( Consistency :: LocalOne ) ;
118
+ // According to `cassandra.h` the default CPP driver's
119
+ // - consistency for statements is LOCAL_ONE,
120
+ // - request client timeout is 12000 millis.
121
+ let default_execution_profile_builder = ExecutionProfileBuilder :: default ( )
122
+ . consistency ( Consistency :: LocalOne )
123
+ . request_timeout ( Some ( Duration :: from_millis ( 12000 ) ) ) ;
121
124
122
125
Box :: into_raw ( Box :: new ( CassCluster {
123
126
session_builder : SessionBuilder :: new ( ) ,
You can’t perform that action at this time.
0 commit comments