Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeter committed Aug 18, 2023
1 parent 9790607 commit 6d86d77
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions gateway-sp-comms/src/single_sp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,12 +473,10 @@ impl SingleSp {
} else {
MgsRequest::ComponentSetActiveSlot { component, slot }
};
self.rpc(msg).await.and_then(|(_peer, response, _data)| {
if persist {
expect_response!(response, ComponentSetAndPersistActiveSlotAck)
} else {
expect_response!(response, ComponentSetActiveSlotAck)
}
self.rpc(msg).await.and_then(if persist {
expect_fn!(ComponentSetAndPersistActiveSlotAck)
} else {
expect_fn!(ComponentSetActiveSlotAck)
})
}

Expand Down

0 comments on commit 6d86d77

Please sign in to comment.