Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@DeadlySurgeon
Copy link
Contributor

To go along with my suggestion in #112, this simple addition would solve some edge cases I've been seeing, and wouldn't change default behavior for generating ids.

@rs
Copy link
Owner

rs commented May 12, 2025

What about using an env variable instead?

@DeadlySurgeon
Copy link
Contributor Author

DeadlySurgeon commented May 12, 2025

I'd be down with that. If you have suggestions to what you'd want it to be, I can go ahead and make the changes. Maybe XID_MACHINE_ID?

The nice part about having it as a function is that it allows code to be more explicit where needed.

@rs
Copy link
Owner

rs commented May 12, 2025

XID_MACHINE_ID sounds good

@DeadlySurgeon
Copy link
Contributor Author

Updated. Also added a unit test. Let me know if that works.

@rs rs merged commit 475c481 into rs:master May 12, 2025
8 checks passed
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.

2 participants