[fractal] API: rename bkerror2 macro to bkerror
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] API: rename bkerror2 macro to bkerror
- Date: Thu, 2 Apr 2020 10:40:06 +0000 (UTC)
commit d1203a851dd894a6f02156b82f901ee328a1900c
Author: Alejandro DomÃnguez <adomu net-c com>
Date: Tue Mar 10 12:37:35 2020 +0100
API: rename bkerror2 macro to bkerror
fractal-matrix-api/src/backend/mod.rs | 4 ++--
fractal-matrix-api/src/util.rs | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/fractal-matrix-api/src/backend/mod.rs b/fractal-matrix-api/src/backend/mod.rs
index 4d905cab..0cf39760 100644
--- a/fractal-matrix-api/src/backend/mod.rs
+++ b/fractal-matrix-api/src/backend/mod.rs
@@ -308,7 +308,7 @@ impl Backend {
}
Ok(BKCommand::AttachFile(server, access_token, msg)) => {
let r = room::attach_file(self, server, access_token, msg);
- bkerror2!(r, tx, BKResponse::AttachedFile);
+ bkerror!(r, tx, BKResponse::AttachedFile);
}
Ok(BKCommand::NewRoom(server, access_token, name, privacy, internal_id)) => {
thread::spawn(move || {
@@ -416,7 +416,7 @@ impl Backend {
};
let r = directory::room_search(self, server, access_token, hs, q, tp, more);
- bkerror2!(r, tx, BKResponse::DirectorySearch);
+ bkerror!(r, tx, BKResponse::DirectorySearch);
}
// Internal commands
diff --git a/fractal-matrix-api/src/util.rs b/fractal-matrix-api/src/util.rs
index 89fc2108..c4114e30 100644
--- a/fractal-matrix-api/src/util.rs
+++ b/fractal-matrix-api/src/util.rs
@@ -90,7 +90,7 @@ macro_rules! clone {
}
#[macro_export]
-macro_rules! bkerror2 {
+macro_rules! bkerror {
($result: expr, $tx: ident, $type: expr) => {
if let Err(e) = $result {
let _ = $tx.send($type(Err(e)));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]