Skip to content
Snippets Groups Projects
Commit bd63d69b authored by Adrien Béraud's avatar Adrien Béraud
Browse files

opendht: log push notification handling result

Change-Id: I6d88519a637c876848407b1e7b59e746b895c185
parent 876085f8
Branches
No related tags found
No related merge requests found
614bed3cee2eda0cfa5d2e132b9bf3c8d7676f80b30121e34b2ae00cdc4bf9958f3d0ebb10092646a69fbceff9c2d5f531b1ff92d0804e74a6e57429d6a004af opendht-5237f0a3b3eb8965f294de706ad73596569ae1dd.tar.gz d6927667242ab5ca80f04995c4ba9c4f8fa24a2ff1dea5b3d4afa2943077c94ce0f97ad9b7c269cfe58df32709acc89ba648faff0a43ed0099b5a8c857e25d87 opendht-b0fa19d6f8a5f6af884b278f4351e5733c6a99e2.tar.gz
{ {
"name": "opendht", "name": "opendht",
"version": "7c184e1c8cbdd87d88912831eb0b845eb427fdfb", "version": "b0fa19d6f8a5f6af884b278f4351e5733c6a99e2",
"url": "https://github.com/savoirfairelinux/opendht/archive/__VERSION__.tar.gz", "url": "https://github.com/savoirfairelinux/opendht/archive/__VERSION__.tar.gz",
"deps": [ "deps": [
"argon2", "argon2",
......
# OPENDHT # OPENDHT
OPENDHT_VERSION := 5237f0a3b3eb8965f294de706ad73596569ae1dd OPENDHT_VERSION := b0fa19d6f8a5f6af884b278f4351e5733c6a99e2
OPENDHT_URL := https://github.com/savoirfairelinux/opendht/archive/$(OPENDHT_VERSION).tar.gz OPENDHT_URL := https://github.com/savoirfairelinux/opendht/archive/$(OPENDHT_VERSION).tar.gz
PKGS += opendht PKGS += opendht
......
...@@ -3299,8 +3299,10 @@ void ...@@ -3299,8 +3299,10 @@ void
JamiAccount::pushNotificationReceived(const std::string& from, JamiAccount::pushNotificationReceived(const std::string& from,
const std::map<std::string, std::string>& data) const std::map<std::string, std::string>& data)
{ {
JAMI_WARNING("[Account {:s}] pushNotificationReceived: {:s}", getAccountID(), from); auto ret_future = dht_->pushNotificationReceived(data);
dht_->pushNotificationReceived(data); dht::ThreadPool::computation().run([id = getAccountID(), ret_future = ret_future.share()] {
JAMI_WARNING("[Account {:s}] pushNotificationReceived: {}", id, (uint8_t)ret_future.get());
});
} }
std::string std::string
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment