Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Ensure that cache_joined_hosts_for_event failing doesn't fail request
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed May 12, 2021
1 parent b5e2691 commit 11ae6d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/handlers/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
from synapse.storage.databases.main.events_worker import EventRedactBehaviour
from synapse.storage.state import StateFilter
from synapse.types import Requester, RoomAlias, StreamToken, UserID, create_requester
from synapse.util import json_decoder, json_encoder
from synapse.util import json_decoder, json_encoder, log_failure
from synapse.util.async_helpers import Linearizer, unwrapFirstError
from synapse.util.caches.expiringcache import ExpiringCache
from synapse.util.metrics import measure_func
Expand Down Expand Up @@ -995,7 +995,7 @@ async def handle_new_client_event(
),
run_in_background(
self.cache_joined_hosts_for_event, event, context
),
).addErrback(log_failure, "cache_joined_hosts_for_event failed"),
],
consumeErrors=True,
)
Expand Down

0 comments on commit 11ae6d5

Please sign in to comment.