From 61a02711c05fd083faf0a765698768037e4703eb Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Sun, 6 Oct 2019 19:12:35 -0400 Subject: [PATCH] Remove the termination validator As was pointed out in the main Aeron project, should use an environment variable instead. --- examples/aeronmd.rs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/examples/aeronmd.rs b/examples/aeronmd.rs index f3a258b..1a972b5 100644 --- a/examples/aeronmd.rs +++ b/examples/aeronmd.rs @@ -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 {