mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-01 04:56:41 -05:00
WIP: Struct for concurrent swaps manager
This commit is contained in:
parent
ec65ea2b27
commit
bbcfffab6d
12 changed files with 411 additions and 484 deletions
|
|
@ -14,6 +14,12 @@ use uuid::Uuid;
|
|||
pub fn register_modules(context: Arc<Context>) -> RpcModule<Arc<Context>> {
|
||||
let mut module = RpcModule::new(context);
|
||||
|
||||
module
|
||||
.register_async_method("suspend_current_swap", |_, context| async move {
|
||||
execute_request(Method::SuspendCurrentSwap, &context).await
|
||||
})
|
||||
.unwrap();
|
||||
|
||||
module
|
||||
.register_async_method("get_swap_info", |params, context| async move {
|
||||
let params: HashMap<String, Uuid> = params.parse()?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue