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
a855b7c3
Unverified
Commit
a855b7c3
authored
5 years ago
by
Erik Johnston
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused DeviceRow class (#6800)
parent
281551f7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog.d/6800.bugfix
+1
-0
1 addition, 0 deletions
changelog.d/6800.bugfix
synapse/federation/send_queue.py
+1
-20
1 addition, 20 deletions
synapse/federation/send_queue.py
with
2 additions
and
20 deletions
changelog.d/6800.bugfix
0 → 100644
+
1
−
0
View file @
a855b7c3
Fix race in federation sender worker that delayed sending of device updates.
This diff is collapsed.
Click to expand it.
synapse/federation/send_queue.py
+
1
−
20
View file @
a855b7c3
...
...
@@ -454,28 +454,9 @@ class EduRow(BaseFederationRow, namedtuple("EduRow", ("edu",))): # Edu
buff
.
edus
.
setdefault
(
self
.
edu
.
destination
,
[]).
append
(
self
.
edu
)
class
DeviceRow
(
BaseFederationRow
,
namedtuple
(
"
DeviceRow
"
,
(
"
destination
"
,))):
# str
"""
Streams the fact that either a) there is pending to device messages for
users on the remote, or b) a local users device has changed and needs to
be sent to the remote.
"""
TypeId
=
"
d
"
@staticmethod
def
from_data
(
data
):
return
DeviceRow
(
destination
=
data
[
"
destination
"
])
def
to_data
(
self
):
return
{
"
destination
"
:
self
.
destination
}
def
add_to_buffer
(
self
,
buff
):
buff
.
device_destinations
.
add
(
self
.
destination
)
TypeToRow
=
{
Row
.
TypeId
:
Row
for
Row
in
(
PresenceRow
,
PresenceDestinationsRow
,
KeyedEduRow
,
EduRow
,
DeviceRow
)
for
Row
in
(
PresenceRow
,
PresenceDestinationsRow
,
KeyedEduRow
,
EduRow
,)
}
...
...
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