mirror of
https://github.com/bspeice/aeron-rs
synced 2024-12-21 21:38:09 -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:
parent
6e1645a7c1
commit
61a02711c0
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user