Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
808ddf0a
Commit
808ddf0a
authored
8 years ago
by
Kegan Dougal
Browse files
Options
Downloads
Patches
Plain Diff
Pop the txn from the map in case it has already been deleted somehow
parent
feb15dc9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/rest/client/transactions.py
+1
-1
1 addition, 1 deletion
synapse/rest/client/transactions.py
with
1 addition
and
1 deletion
synapse/rest/client/transactions.py
+
1
−
1
View file @
808ddf0a
...
...
@@ -97,7 +97,7 @@ class HttpTransactionCache(object):
# from the transaction map. This is done to ensure that we don't
# cache transient errors like rate-limiting errors, etc.
def
remove_from_map
(
err
):
del
self
.
transactions
[
txn_key
]
self
.
transactions
.
pop
(
txn_key
,
None
)
return
err
observable
.
addErrback
(
remove_from_map
)
return
observable
.
observe
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment