@@ -151,10 +151,7 @@ pub extern "C" fn initialize_agent(
151151
152152#[ no_mangle]
153153pub extern "C" fn drop_agent ( ) -> bool {
154- // Send Kill signal to the FFI merge channel.
155- ffikit:: send ( ffikit:: Signal :: Kill ) . unwrap ( ) ;
156-
157- true
154+ return ffikit:: send ( ffikit:: Signal :: Kill ) . is_ok ( ) ;
158155}
159156
160157#[ no_mangle]
@@ -170,9 +167,7 @@ pub extern "C" fn add_thread_tag(thread_id: u64, key: *const c_char, value: *con
170167 hasher. write_u64 ( thread_id % pid as u64 ) ;
171168 let id = hasher. finish ( ) ;
172169
173- ffikit:: send ( ffikit:: Signal :: AddThreadTag ( id, key, value) ) . unwrap ( ) ;
174-
175- true
170+ return ffikit:: send ( ffikit:: Signal :: AddThreadTag ( id, key, value) ) . is_ok ( ) ;
176171}
177172
178173#[ no_mangle]
@@ -190,9 +185,7 @@ pub extern "C" fn remove_thread_tag(
190185 hasher. write_u64 ( thread_id % pid as u64 ) ;
191186 let id = hasher. finish ( ) ;
192187
193- ffikit:: send ( ffikit:: Signal :: RemoveThreadTag ( id, key, value) ) . unwrap ( ) ;
194-
195- true
188+ return ffikit:: send ( ffikit:: Signal :: RemoveThreadTag ( id, key, value) ) . is_ok ( ) ;
196189}
197190
198191#[ no_mangle]
@@ -203,9 +196,7 @@ pub extern "C" fn add_global_tag(key: *const c_char, value: *const c_char) -> bo
203196 . unwrap ( )
204197 . to_owned ( ) ;
205198
206- ffikit:: send ( ffikit:: Signal :: AddGlobalTag ( key, value) ) . unwrap ( ) ;
207-
208- true
199+ return ffikit:: send ( ffikit:: Signal :: AddGlobalTag ( key, value) ) . is_ok ( ) ;
209200}
210201
211202#[ no_mangle]
@@ -216,9 +207,7 @@ pub extern "C" fn remove_global_tag(key: *const c_char, value: *const c_char) ->
216207 . unwrap ( )
217208 . to_owned ( ) ;
218209
219- ffikit:: send ( ffikit:: Signal :: RemoveGlobalTag ( key, value) ) . unwrap ( ) ;
220-
221- true
210+ return ffikit:: send ( ffikit:: Signal :: RemoveGlobalTag ( key, value) ) . is_ok ( ) ;
222211}
223212
224213// Convert a string of tags to a Vec<(&str, &str)>
0 commit comments