Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

feat(mam): Return UUID as the repsonse of send MAM message #681

Merged
merged 1 commit into from
Sep 23, 2020

Conversation

howjmay
Copy link
Contributor

@howjmay howjmay commented Jun 23, 2020

Tangle-accelerator would respond an UUID for every send_mam_message()
request. This UUID can be used as querying data for
api_fetch_buffered_request_status().
api_fetch_buffered_request_status() serves as the API to search
the current status of both buffered MAM request and buffered
transaction objects.

Closes #624

@jserv
Copy link
Member

jserv commented Jun 24, 2020

I am not convinced that this pull request can make MAM APIs non-blocking. Can you explain?

@howjmay
Copy link
Contributor Author

howjmay commented Jun 24, 2020

i am not convinced that this pull request can make MAM APIs non-blocking. Can you explain?

This is a working in process draft PR. I will buffer the request of send_mam_message, and process the request in another thread in background.c.

accelerator/config.h Outdated Show resolved Hide resolved
@howjmay howjmay force-pushed the non_block branch 10 times, most recently from 0c15f71 to cc9eaa2 Compare July 23, 2020 14:53
@howjmay howjmay force-pushed the non_block branch 11 times, most recently from 85c919f to 1345740 Compare August 4, 2020 05:56
@howjmay howjmay requested review from jserv and marktwtn August 4, 2020 06:05
@howjmay howjmay force-pushed the non_block branch 2 times, most recently from 1f5f104 to d4128db Compare August 17, 2020 05:33
accelerator/cli_info.h Outdated Show resolved Hide resolved
@jserv
Copy link
Member

jserv commented Sep 17, 2020

Pending for CI pipeline.

@howjmay howjmay force-pushed the non_block branch 2 times, most recently from 4193a87 to 7c4e8f0 Compare September 21, 2020 17:34
accelerator/core/apis.c Outdated Show resolved Hide resolved
@howjmay howjmay force-pushed the non_block branch 2 times, most recently from 07e09c8 to bd45f5b Compare September 22, 2020 02:51
Tangle-accelerator would respond an UUID for every `send_mam_message()`
request. The requests would be buffered, and they will be published
with another background thread which is in `periodical_task.[c, h]`
@howjmay howjmay requested a review from jserv September 22, 2020 03:58
@howjmay howjmay merged commit bc8e522 into DLTcollab:develop Sep 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-mam Area - MAM C-feature Category - feature
3 participants