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 (dump) NATS reconnection attempts on startup #38

Merged
merged 1 commit into from
Nov 11, 2020

Conversation

blaggacao
Copy link
Contributor

@blaggacao blaggacao commented Oct 27, 2020

fixes #37

This is a non-configurable ("dump") implementation. I dind't think it was worth it to expose a configuration flag for all edge cases here. If the start up fails due to non connectivity after a total of 25 seconds, then a k8s restart loop probably is within the budget.


This change is Reviewable

@blaggacao
Copy link
Contributor Author

$ make ci
go mod verify
all modules verified
golangci-lint run
go build ./...
go build
go test ./...
?   	github.com/CyCoreSystems/ari-proxy/v5	[no test files]
ok  	github.com/CyCoreSystems/ari-proxy/v5/client	0.046s
ok  	github.com/CyCoreSystems/ari-proxy/v5/client/bus	0.012s
ok  	github.com/CyCoreSystems/ari-proxy/v5/client/cluster	0.056s
?   	github.com/CyCoreSystems/ari-proxy/v5/internal/integration	[no test files]
?   	github.com/CyCoreSystems/ari-proxy/v5/proxy	[no test files]
ok  	github.com/CyCoreSystems/ari-proxy/v5/server	0.058s
ok  	github.com/CyCoreSystems/ari-proxy/v5/server/dialog	0.005s
ok  	github.com/CyCoreSystems/ari-proxy/v5/session	0.002s

Copy link
Member

@Ulexus Ulexus left a comment

Choose a reason for hiding this comment

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

nits and thanks!

Sorry I missed this PR.

@blaggacao
Copy link
Contributor Author

Fixed and force-pushed, please continue review / acceptance consideration.

@Ulexus
Copy link
Member

Ulexus commented Nov 11, 2020

Thanks @blaggacao !

@Ulexus Ulexus merged commit 9c11fb3 into CyCoreSystems:master Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wait for nats (and asterisk)
2 participants