Skip to content

Commit

Permalink
chore: minor cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Micah Peltier <micah6_8@yahoo.com>
  • Loading branch information
mepeltier committed Jun 5, 2024
1 parent 0244092 commit 8ae16d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions aries_cloudagent/core/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ async def handle_v2_message(
# send a DCV2 Problem Report here for testing, and to punt procotol handling down
# the road a bit
context = RequestContext(profile)
# context.message = message
context.message_receipt = inbound_message.receipt
responder = DispatcherResponder(
context,
Expand All @@ -145,7 +144,6 @@ async def handle_v2_message(
)

context.injector.bind_instance(BaseResponder, responder)
# responder.connection_id = connection and connection.connection_id
error_result = V2AgentMessage(
message={
"type": "https://didcomm.org/report-problem/2.0/problem-report",
Expand Down
4 changes: 2 additions & 2 deletions aries_cloudagent/transport/pack_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ def __init__(self):

def get_for_packed_msg(self, packed_msg: Union[str, bytes]) -> BaseWireFormat:
"""Retrieve appropriate DIDComm instance for a given packed message."""
format = {
pack_format = {
DIDCommVersion.v1: self.v1pack_format,
DIDCommVersion.v2: self.v2pack_format,
}[get_version_for_packed_msg(packed_msg)]
assert (
format
), "self.v2_pack_format will be set when --experimental-didcomm-v2 is set"
return format
return pack_format

async def parse_message(
self, session: ProfileSession, message_body: Union[str, bytes]
Expand Down

0 comments on commit 8ae16d3

Please sign in to comment.