Skip to content

Commit

Permalink
Add recipient role to mediation related protocols
Browse files Browse the repository at this point in the history
Signed-off-by: Naian <[email protected]>
  • Loading branch information
nain-F49FF806 committed Nov 7, 2023
1 parent a132d42 commit 3bd06ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion messages/src/msg_types/protocols/coordinate_mediation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub enum CoordinateMediationType {
#[transitive(into(CoordinateMediationType, Protocol))]
#[msg_type(major = 1)]
pub enum CoordinateMediationTypeV1 {
#[msg_type(minor = 0, roles = "Role::Mediator")]
#[msg_type(minor = 0, roles = "Role::Mediator, Role::Recipient")]
V1_0(MsgKindType<CoordinateMediationTypeV1_0>),
}

Expand Down
2 changes: 1 addition & 1 deletion messages/src/msg_types/protocols/pickup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub enum PickupType {
#[transitive(into(PickupType, Protocol))]
#[msg_type(major = 2)]
pub enum PickupTypeV2 {
#[msg_type(minor = 0, roles = "Role::Mediator")]
#[msg_type(minor = 0, roles = "Role::Mediator, Role::Recipient")]
V2_0(MsgKindType<PickupTypeV2_0>),
}

Expand Down
1 change: 1 addition & 0 deletions messages/src/msg_types/role.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ pub enum Role {
Notified,
Notifier,
Mediator,
Recipient,
}

0 comments on commit 3bd06ef

Please sign in to comment.