Skip to content

Commit

Permalink
Remove unused duplicated funtion
Browse files Browse the repository at this point in the history
Signed-off-by: jamshale <[email protected]>
  • Loading branch information
jamshale committed Mar 5, 2025
1 parent d08add8 commit bf34599
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions acapy_agent/revocation/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,38 +513,6 @@ async def set_cred_revoked_state(
except StorageNotFoundError:
pass

async def process_publish_response_for_endorsement(
self,
responses: dict,
outbound_handler: BaseResponder.send_outbound,
endorser_conn_id: str,
):
"""Process the publish response for endorsement."""
txn_responses = []
for response in responses:
transaction_mgr = TransactionManager(self._profile)

transaction = await transaction_mgr.create_record(
messages_attach=response["result"], connection_id=endorser_conn_id
)

# if auto-request, send the request to the endorser
if self._profile.context.settings.get_value("endorser.auto_request"):
(
transaction,
transaction_request,
) = await transaction_mgr.create_request(
transaction=transaction,
)

await outbound_handler(
transaction_request, connection_id=endorser_conn_id
)

txn_responses.append(transaction.serialize())

return txn_responses

async def _get_endorser_info(self) -> Tuple[Optional[str], Optional[ConnRecord]]:
connection_id = await get_endorser_connection_id(self._profile)

Expand Down

0 comments on commit bf34599

Please sign in to comment.