1
0
mirror of https://github.com/bspeice/aeron-rs synced 2024-12-22 05:48:10 -05:00

Remove the termination validator

As was pointed out in the main Aeron project, should use an environment variable instead.
This commit is contained in:
Bradlee Speice 2019-10-06 19:12:35 -04:00
parent 6e1645a7c1
commit 61a02711c0

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 { if init_success {
let driver_init = unsafe { aeron_driver_init(&mut driver, context) }; let driver_init = unsafe { aeron_driver_init(&mut driver, context) };
if driver_init < 0 { if driver_init < 0 {