Skip to content

Update all L2 APIs to return responses asynchronously.#48

Merged
neelam-kushwah merged 2 commits intoeclipse-uprotocol:mainfrom
neelam-kushwah:async
Jul 10, 2024
Merged

Update all L2 APIs to return responses asynchronously.#48
neelam-kushwah merged 2 commits intoeclipse-uprotocol:mainfrom
neelam-kushwah:async

Conversation

@neelam-kushwah
Copy link
Contributor

This change updates all the communication layer APIs to return UStatus asynchronously. Methods now return UStatus upon success or complete with a UStatusError containing the relevant UStatus information upon failure

@github-actions
Copy link

github-actions bot commented Jul 5, 2024

Code coverage report is ready! 📈

@neelam-kushwah neelam-kushwah added the enhancement New feature or request label Jul 5, 2024
@github-actions
Copy link

github-actions bot commented Jul 8, 2024

Code coverage report is ready! 📈

@matthewd0123
Copy link
Contributor

LGTM

Copy link

@stevenhartley stevenhartley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. One thing I notice is that all the tests seem to run each operation synchronously by calling await. Is there a way you can test operations happening concurrently to ensure they are sequenced correctly?

@neelam-kushwah
Copy link
Contributor Author

yes, we can use asyncio.gather() to run multiple functions concurrently. I will add a test case in each file with asyncio.gather to ensure our tests cover concurrent operations.

@neelam-kushwah neelam-kushwah merged commit 4c00ec8 into eclipse-uprotocol:main Jul 10, 2024
@neelam-kushwah neelam-kushwah deleted the async branch July 10, 2024 14:01
@neelam-kushwah neelam-kushwah self-assigned this Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants