-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Move some rest endpoints to client reader #5063
Conversation
cb5677b
to
f3b6cba
Compare
f3b6cba
to
2082519
Compare
@@ -109,12 +112,12 @@ def _listen_http(self, listener_config): | |||
ThreepidRestServlet(self).register(resource) | |||
KeyQueryServlet(self).register(resource) | |||
KeyChangesServlet(self).register(resource) | |||
VoipRestServlet(self).register(resource) | |||
PushRuleRestServlet(self).register(resource) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
surely you can only safely move GET /pushrules to the worker?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh argh.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed?
Codecov Report
@@ Coverage Diff @@
## develop #5063 +/- ##
==========================================
- Coverage 61.57% 60.8% -0.77%
==========================================
Files 332 332
Lines 34265 34228 -37
Branches 5648 5647 -1
==========================================
- Hits 21097 20811 -286
- Misses 11654 11874 +220
- Partials 1514 1543 +29 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm otherwise
synapse/rest/client/v1/push_rule.py
Outdated
@@ -103,6 +107,9 @@ def on_PUT(self, request): | |||
|
|||
@defer.inlineCallbacks | |||
def on_DELETE(self, request): | |||
if self._is_worker: | |||
raise Exception("Cannot handle PUT /push_rules on worker") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DELETE
548fb07
to
ec638a1
Compare
No description provided.