Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Ley
synapse
Commits
6a519a0c
Commit
6a519a0c
authored
4 years ago
by
Richard van der Hoff
Browse files
Options
Downloads
Patches
Plain Diff
Remove vestigal references to SYNC replication command
We've ripped pretty much all of this out: let's remove the remains.
parent
2e105c15
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
synapse/replication/tcp/commands.py
+0
-10
0 additions, 10 deletions
synapse/replication/tcp/commands.py
synapse/replication/tcp/handler.py
+0
-4
0 additions, 4 deletions
synapse/replication/tcp/handler.py
with
0 additions
and
14 deletions
synapse/replication/tcp/commands.py
+
0
−
10
View file @
6a519a0c
...
@@ -289,14 +289,6 @@ class FederationAckCommand(Command):
...
@@ -289,14 +289,6 @@ class FederationAckCommand(Command):
return
str
(
self
.
token
)
return
str
(
self
.
token
)
class
SyncCommand
(
Command
):
"""
Used for testing. The client protocol implementation allows waiting
on a SYNC command with a specified data.
"""
NAME
=
"
SYNC
"
class
RemovePusherCommand
(
Command
):
class
RemovePusherCommand
(
Command
):
"""
Sent by the client to request the master remove the given pusher.
"""
Sent by the client to request the master remove the given pusher.
...
@@ -419,7 +411,6 @@ _COMMANDS = (
...
@@ -419,7 +411,6 @@ _COMMANDS = (
ReplicateCommand
,
ReplicateCommand
,
UserSyncCommand
,
UserSyncCommand
,
FederationAckCommand
,
FederationAckCommand
,
SyncCommand
,
RemovePusherCommand
,
RemovePusherCommand
,
InvalidateCacheCommand
,
InvalidateCacheCommand
,
UserIpCommand
,
UserIpCommand
,
...
@@ -437,7 +428,6 @@ VALID_SERVER_COMMANDS = (
...
@@ -437,7 +428,6 @@ VALID_SERVER_COMMANDS = (
PositionCommand
.
NAME
,
PositionCommand
.
NAME
,
ErrorCommand
.
NAME
,
ErrorCommand
.
NAME
,
PingCommand
.
NAME
,
PingCommand
.
NAME
,
SyncCommand
.
NAME
,
RemoteServerUpCommand
.
NAME
,
RemoteServerUpCommand
.
NAME
,
)
)
...
...
This diff is collapsed.
Click to expand it.
synapse/replication/tcp/handler.py
+
0
−
4
View file @
6a519a0c
...
@@ -31,7 +31,6 @@ from synapse.replication.tcp.commands import (
...
@@ -31,7 +31,6 @@ from synapse.replication.tcp.commands import (
RemoteServerUpCommand
,
RemoteServerUpCommand
,
RemovePusherCommand
,
RemovePusherCommand
,
ReplicateCommand
,
ReplicateCommand
,
SyncCommand
,
UserIpCommand
,
UserIpCommand
,
UserSyncCommand
,
UserSyncCommand
,
)
)
...
@@ -281,9 +280,6 @@ class ReplicationCommandHandler:
...
@@ -281,9 +280,6 @@ class ReplicationCommandHandler:
self
.
_streams_connected
.
add
(
cmd
.
stream_name
)
self
.
_streams_connected
.
add
(
cmd
.
stream_name
)
async
def
on_SYNC
(
self
,
cmd
:
SyncCommand
):
pass
async
def
on_REMOTE_SERVER_UP
(
self
,
cmd
:
RemoteServerUpCommand
):
async
def
on_REMOTE_SERVER_UP
(
self
,
cmd
:
RemoteServerUpCommand
):
""""
Called when get a new REMOTE_SERVER_UP command.
"""
""""
Called when get a new REMOTE_SERVER_UP command.
"""
self
.
_replication_data_handler
.
on_remote_server_up
(
cmd
.
data
)
self
.
_replication_data_handler
.
on_remote_server_up
(
cmd
.
data
)
...
...
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