Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Rushing adversary mitigation #94

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions library/src/services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ pub const NOTIFY_SIGNED_EVENT: &str = "notifySigned";
type GroupCreateParams = (String, Parameters);
type SessionCreateParams = (Uuid, SessionKind, Option<Value>);
type SessionJoinParams = (Uuid, Uuid, SessionKind);
type SessionSignupParams = (Uuid, Uuid, SessionKind);
type SessionSignupParams = (Uuid, Uuid, Uuid, SessionKind);
type SessionLoadParams = (Uuid, Uuid, SessionKind, u16);
type SessionMessageParams = (Uuid, Uuid, SessionKind, Message);
type SessionFinishParams = (Uuid, Uuid, u16);
Expand Down Expand Up @@ -370,7 +370,7 @@ impl Service for ServiceHandler {
SESSION_SIGNUP => {
let (conn_id, state, notification) = ctx;
let params: SessionSignupParams = req.deserialize()?;
let (group_id, session_id, kind) = params;
let (group_id, session_id, _invite_id, kind) = params;

let mut writer = state.write().await;
let group =
Expand Down