Skip to content

Commit

Permalink
Consistent naming
Browse files Browse the repository at this point in the history
  • Loading branch information
hughns committed Apr 9, 2024
1 parent bab65ef commit 0fd5d15
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions rust/src/rendezvous/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ fn check_input_headers(headers: &HeaderMap) -> PyResult<Mime> {

// TODO: handle eviction
#[pyclass]
struct RendezVousHandler {
struct RendezvousHandler {
base: Uri,
sessions: HashMap<Ulid, Session>,
}

#[pymethods]
impl RendezVousHandler {
impl RendezvousHandler {
#[new]
fn new(py: Python<'_>, homeserver: &PyAny) -> PyResult<Py<Self>> {
let base: String = homeserver
Expand Down Expand Up @@ -228,7 +228,7 @@ impl RendezVousHandler {
pub fn register_module(py: Python<'_>, m: &PyModule) -> PyResult<()> {
let child_module = PyModule::new(py, "rendezvous")?;

child_module.add_class::<RendezVousHandler>()?;
child_module.add_class::<RendezvousHandler>()?;

m.add_submodule(child_module)?;

Expand Down
6 changes: 3 additions & 3 deletions synapse/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
from synapse.util.ratelimitutils import FederationRateLimiter
from synapse.util.stringutils import random_string
from synapse.util.task_scheduler import TaskScheduler
from synapse.synapse_rust.rendezvous import RendezVousHandler
from synapse.synapse_rust.rendezvous import RendezvousHandler

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -861,8 +861,8 @@ def get_room_forgetter_handler(self) -> RoomForgetterHandler:
return RoomForgetterHandler(self)

@cache_in_self
def get_rendezvous_handler(self) -> RendezVousHandler:
return RendezVousHandler(self)
def get_rendezvous_handler(self) -> RendezvousHandler:
return RendezvousHandler(self)

@cache_in_self
def get_outbound_redis_connection(self) -> "ConnectionHandler":
Expand Down
2 changes: 1 addition & 1 deletion synapse/synapse_rust/rendezvous.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from synapse.server import HomeServer
from twisted.web.iweb import IRequest

class RendezVousHandler:
class RendezvousHandler:
def __init__(self, homeserver: HomeServer): ...
def handle_post(self, request: IRequest): ...
def handle_get(self, request: IRequest, session_id: str): ...
Expand Down

0 comments on commit 0fd5d15

Please sign in to comment.