mirror of
https://github.com/bspeice/aeron-rs
synced 2024-12-21 21:38:09 -05:00
Formatting fix
This commit is contained in:
parent
730252127b
commit
6e1645a7c1
@ -17,7 +17,11 @@ unsafe extern "C" fn termination_hook(_clientd: *mut c_void) {
|
|||||||
RUNNING.store(false, Ordering::SeqCst);
|
RUNNING.store(false, Ordering::SeqCst);
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe extern "C" fn termination_validator(_state: *mut c_void, _buffer: *mut u8, _length: i32) -> bool {
|
unsafe extern "C" fn termination_validator(
|
||||||
|
_state: *mut c_void,
|
||||||
|
_buffer: *mut u8,
|
||||||
|
_length: i32,
|
||||||
|
) -> bool {
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,7 +77,7 @@ fn main() {
|
|||||||
aeron_driver_context_set_driver_termination_validator(
|
aeron_driver_context_set_driver_termination_validator(
|
||||||
context,
|
context,
|
||||||
Some(termination_validator),
|
Some(termination_validator),
|
||||||
ptr::null_mut()
|
ptr::null_mut(),
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
if term_validator < 0 {
|
if term_validator < 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user