hi there are some functions that are deprecated as...
# libpact_ffi-users
p
hi there are some functions that are deprecated as per the pact_ffi documentation, but used in pact-reference repo in languages like python. For example:
Copy code
## Load pact into Mock Server and start
mock_server_port = lib.pactffi_create_mock_server(ffi.new("char[]", json.dumps(contents).encode('ascii')) , b'127.0.0.1:4432',0)
print(f"Mock server started: {mock_server_port}")
pactffi_create_mock_server
seems deprecated as per the pact_ffi documentation, should i be using this or the function thats mentioned in the documentation -
pactffi_create_mock_server_for_transport
?
1
u
Use the mentioned function, the deprecated functions will be removed at some time in the future
👍 1