8000 fix ha circuit id gen by plorenz · Pull Request #3125 · openziti/ziti · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix ha circuit id gen #3125

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

Merged
merged 2 commits into from
Jun 18, 2025
Merged

fix ha circuit id gen #3125

merged 2 commits into from
Jun 18, 2025

Conversation

plorenz
Copy link
Member
@plorenz plorenz commented Jun 18, 2025

@plorenz plorenz requested review from a team as code owners June 18, 2025 15:26
@@ -51,10 +51,20 @@ func (self *shortIdGenerator) NextId() (string, error) {
}
}

func NewUUIDString() string {
func MustNewUUIDString() string {
Copy link
Member
@andrewpmartinez andrewpmartinez Jun 18, 2025

Choose a reason for hiding this comment

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

"MustNew" ? Does the panic ever happen? It seems weird to panic at all rather than pass back an error.

Copy link
Member Author

Choose a reason for hiding this comment

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

I would guess that the error never happens, but before we were ignoring the error. I figured it was better to find out that something had gone wrong than not.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll make a note to go back and switch all the uses over to the error returning one.

Copy link
Member

Choose a reason for hiding this comment

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

If that were the case, I suggest making the original method panic and using that everywhere.

@plorenz plorenz merged commit 10983f5 into main Jun 18, 2025
56 checks passed
@plorenz plorenz deleted the fix-ha-circuit-id-gen branch June 18, 2025 16:08
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.

ids used by circuits and ingress/egress can conflict in an HA setup
2 participants
0