Remove the termination validator

As was pointed out in the main Aeron project, should use an environment variable instead.
pull/6/head
Bradlee Speice 2019-10-06 19:12:35 -04:00
parent 6e1645a7c1
commit 61a02711c0
1 changed files with 0 additions and 19 deletions

View File

@ -72,25 +72,6 @@ fn main() {
}
}
if init_success {
let term_validator = unsafe {
aeron_driver_context_set_driver_termination_validator(
context,
Some(termination_validator),
ptr::null_mut(),
)
};
if term_validator < 0 {
let err_code = unsafe { aeron_errcode() };
let err_str = unsafe { CStr::from_ptr(aeron_errmsg()) }.to_str().unwrap();
eprintln!(
"ERROR: context set termination validator ({}), {}",
err_code, err_str
);
init_success = false
}
}
if init_success {
let driver_init = unsafe { aeron_driver_init(&mut driver, context) };
if driver_init < 0 {