Skip to content

Implement (dump) NATS reconnection attempts on startup#38

Merged
Ulexus merged 1 commit intoCyCoreSystems:masterfrom
blaggacao:da-add-entrypoint
Nov 11, 2020
Merged

Implement (dump) NATS reconnection attempts on startup#38
Ulexus merged 1 commit intoCyCoreSystems:masterfrom
blaggacao:da-add-entrypoint

Conversation

@blaggacao
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

Comment thread server/server.go Outdated
Comment thread server/server.go Outdated
@blaggacao
Copy link
Copy Markdown
Contributor Author

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

@Ulexus
Copy link
Copy Markdown
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