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

make this delay configurable #78

Open
github-actions bot opened this issue Oct 17, 2023 · 0 comments
Open

make this delay configurable #78

github-actions bot opened this issue Oct 17, 2023 · 0 comments
Assignees
Labels

Comments

@github-actions
Copy link
Contributor

https://api.github.com/gogrlx/grlx/blob/2ae30f217edc2655ab355a82a26b3d9c8708105f/cmd/sprout/main.go#L43

	certs.GenNKey(false)
	for err := pki.LoadRootCA("sprout"); err != nil; err = pki.LoadRootCA("sprout") {
		log.Debugf("Error with RootCA: %v", err)
		// TODO make this delay configurable
		time.Sleep(time.Second * 5)
	}
	for err := pki.PutNKey(sproutID); err != nil; err = pki.PutNKey(sproutID) {
		log.Debugf("Error submitting NKey: %v", err)

		// TODO make this delay configurable
		time.Sleep(time.Second * 5)
	}
	go ConnectSprout()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant