Skip to content

Commit 2df4e22

Browse files
committed
cleanup
1 parent 5f12271 commit 2df4e22

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

synapse/storage/databases/main/devices.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -828,8 +828,6 @@ async def _get_device_update_edus_by_remote(
828828
else {}
829829
)
830830

831-
print("got devices:", devices)
832-
833831
results = []
834832
for user_id, user_devices in devices.items():
835833
# The prev_id for the first row is always the last row before
@@ -874,8 +872,6 @@ async def _get_device_update_edus_by_remote(
874872

875873
results.append((EduTypes.DEVICE_LIST_UPDATE, result))
876874

877-
print("and finally results is:", results)
878-
879875
return results
880876

881877
async def _get_last_device_update_for_remote_user(

synapse/storage/databases/main/end_to_end_keys.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,6 @@ async def get_e2e_device_keys_and_signatures(
345345
include_deleted_devices,
346346
)
347347

348-
print("result is:", result)
349-
350348
# get the (user_id, device_id) tuples to look up cross-signatures for
351349
signature_query = (
352350
(user_id, device_id)
@@ -356,7 +354,6 @@ async def get_e2e_device_keys_and_signatures(
356354
)
357355

358356
for batch in batch_iter(signature_query, 50):
359-
print("About to call get_e2e_cross_signing with:", batch)
360357
cross_sigs_result = (
361358
await self._get_e2e_cross_signing_signatures_for_devices(batch)
362359
)
@@ -389,7 +386,6 @@ async def get_e2e_device_keys_and_signatures(
389386
signing_user_signatures[key_id] = signature
390387

391388
log_kv(result)
392-
print("We are returning:", result)
393389
return result
394390

395391
async def _get_e2e_device_keys(
@@ -569,8 +565,6 @@ def _get_e2e_cross_signing_signatures_for_devices_txn(
569565
signature_tuple
570566
)
571567

572-
print("Found devices and signatures:", devices_and_signatures)
573-
574568
return devices_and_signatures
575569

576570
return await self.db_pool.runInteraction(
@@ -1873,8 +1867,6 @@ def _store_e2e_cross_signing_signatures(
18731867
if user_id == item.target_user_id
18741868
]
18751869

1876-
print("will invalidate:", to_invalidate)
1877-
18781870
if to_invalidate:
18791871
self._invalidate_cache_and_stream_bulk(
18801872
txn,

tests/handlers/test_e2e_keys.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,8 +1078,6 @@ def test_upload_signatures(self) -> None:
10781078
)
10791079
)
10801080

1081-
print(ret["device_keys"])
1082-
10831081
self.assertEqual(
10841082
ret["device_keys"][local_user]["xyz"]["signatures"][local_user][
10851083
"ed25519:" + selfsigning_pubkey

0 commit comments

Comments
 (0)