Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Added timeouts for channels #29

Merged
merged 2 commits into from
Feb 10, 2020
Merged

Added timeouts for channels #29

merged 2 commits into from
Feb 10, 2020

Conversation

JoaoAndreSa
Copy link
Contributor

closes #25

@@ -48,6 +50,7 @@ type Service struct {
// NewService constructor which registers the needed messages.
func NewService(c *onet.Context) (onet.Service, error) {
newUnLynxInstance := &Service{
Timeout: 20 * time.Minute,
Copy link
Contributor

Choose a reason for hiding this comment

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

This timeout should be configurable. E.g. using the cli library, that way we will be able to pass this through the env for the docker image.

@mickmis mickmis merged commit a6dfdc4 into dev Feb 10, 2020
@mickmis mickmis deleted the timeouts branch February 10, 2020 16:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow for timeouts when expecting values from channels
2 participants