Skip to content

Commit

Permalink
chore: add deprecation warning for new_async_message #334
Browse files Browse the repository at this point in the history
  • Loading branch information
rholshausen committed Nov 13, 2023
1 parent c172bcb commit 944f67d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rust/pact_ffi/src/mock_server/handles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2210,7 +2210,11 @@ ffi_fn! {
/// * `description` - The message description. It needs to be unique for each Message.
///
/// Returns a new `MessageHandle`.
///
/// Note: This function is deprecated in favour of `new_message_interaction` which returns an
/// InteractionHandle that can be used for both HTTP and message interactions.
#[no_mangle]
#[deprecated(note = "Replaced with new_message_interaction")]
pub extern fn pactffi_new_async_message(pact: PactHandle, description: *const c_char) -> MessageHandle {
if let Some(description) = convert_cstr("description", description) {
pact.with_pact(&|_, inner| {
Expand Down

0 comments on commit 944f67d

Please sign in to comment.