Skip to content

Commit

Permalink
fix: drop old comments
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
  • Loading branch information
dbluhm committed Sep 21, 2023
1 parent eb331d8 commit 86ad52e
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ async def update_keylist(

route_mgr = RoutingManager(self._profile)
routes = await route_mgr.get_routes(record.connection_id)
# existing_keys = {normalize_from_public_key(r.recipient_key): r for r in routes}
existing_keys = {r.recipient_key: r for r in routes}

updated = []
Expand Down Expand Up @@ -480,11 +479,8 @@ async def request_granted(self, record: MediationRecord, grant: MediationGrant):
"""
record.state = MediationRecord.STATE_GRANTED
record.endpoint = grant.endpoint
# record.routing_keys = grant.routing_keys
routing_keys = []
for key in grant.routing_keys:
# Turn to b58
# routing_keys.append(normalize_from_did_key(key))
routing_keys.append(normalize_from_public_key(key))
record.routing_keys = routing_keys
async with self._profile.session() as session:
Expand Down Expand Up @@ -518,7 +514,6 @@ async def prepare_keylist_query(
KeylistQuery: message to send to mediator
"""
# TODO Handle creation of filter rather than delegating to caller?
message = KeylistQuery(
filter=filter_,
paginate=KeylistQueryPaginate(paginate_limit, paginate_offset),
Expand Down

0 comments on commit 86ad52e

Please sign in to comment.