Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bstasyszyn
Copy link
Contributor

Added a publisher channel to handle publish requests in a separate Go proc. When the HTTP subscriber is stopped, the publisher listener safely shuts down the subscriber channel.

This commit also fixes the problem with varying code coverage in the unit tests.

closes #1463
closes #591

Signed-off-by: Bob Stasyszyn [email protected]

@cla-bot cla-bot bot added the cla-signed label Aug 30, 2022
Added a publisher channel to handle publish requests in a separate Go proc. When the HTTP subscriber is stopped, the publisher listener safely shuts down the subscriber channel.

This commit also fixes the problem with varying code coverage in the unit tests and a race condition in the startup params test.

closes trustbloc#1463
closes trustbloc#591

Signed-off-by: Bob Stasyszyn <[email protected]>
@bstasyszyn bstasyszyn merged commit f3abaee into trustbloc:main Aug 30, 2022
@bstasyszyn bstasyszyn deleted the logging branch August 30, 2022 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Race condition in HTTP subscriber httpsubscriber_test.go does not produce the same amount of code coverage each time it's run

3 participants