Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement go routines closing mechanism #1742

Merged
merged 6 commits into from
May 15, 2020

Conversation

SebastianMarian
Copy link
Contributor

@SebastianMarian SebastianMarian commented May 13, 2020

  • Added go routines close mechanism through context and io.Close implementation for components: Chronology, Worker, SyncTimer, Bootstrapper, epochStartTrigger, miniBlocksPoolsCleaner, txsPoolsCleaner

…ementation for components: Chronology, Worker, SyncTimer, Bootstrapper
@SebastianMarian SebastianMarian added the type:feature New feature or request label May 13, 2020
@SebastianMarian SebastianMarian self-assigned this May 13, 2020
@sasurobert sasurobert self-requested a review May 14, 2020 05:40
@@ -96,6 +98,7 @@ type SubroundsFactory interface {

//WorkerHandler represents the interface for the SposWorker
type WorkerHandler interface {
io.Closer
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't we use our own interface ? instead of io.Closer

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep, removed it from all modified interfaces

…entation for components: epochStartTrigger, txsPoolsCleaner, miniBlocksPoolsCleaner
@SebastianMarian SebastianMarian changed the title Soft restart consensus component Go routines closing May 14, 2020
@SebastianMarian SebastianMarian changed the title Go routines closing Implement go routines closing mechanism May 14, 2020
Copy link
Contributor

@LucianMincu LucianMincu left a comment

Choose a reason for hiding this comment

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

System tests passed.

@LucianMincu LucianMincu merged commit b2ce3db into development May 15, 2020
@LucianMincu LucianMincu deleted the soft-restart-consensus-component branch May 15, 2020 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants