-
Notifications
You must be signed in to change notification settings - Fork 56
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 NuidWriter public #618
Conversation
Thanks @Madgvox. Can I ask you to sign your commit please? It's a CNCF requirement, and we won't be able to merge because of GitHub rules setup for this repo. You will have to force push, which should be fine. Thank you 💯 |
9288c68
to
b01865f
Compare
b01865f
to
019105b
Compare
Should be corrected now. |
I think it would be better change the naming as follows: - public static class NuidWriter {
+ public static class Nuid { // or NuidGenerator if you prefer
- public static bool TryWriteNuid(Span<char> nuidBuffer);
+ public static int Write(Span<char> destination); // Throw for inappropriate sized destination, return number of chars written
} Reasoning:
|
I'd be happy with either name
This makes a lot of sense if we want to expose it. @Madgvox would you be using
If we want |
I'd be using the GetString() variant most likely. We use Nuids for dynamic subject IDs.
|
Renamed NuidWriter to Nuid across the codebase for clarity and brevity. Updated all relevant method calls and references to reflect the new naming convention.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes LGTM, did not review workflow changes.
LGTM 👍 |
Co-authored-by: Jasper <jasper-d@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Fixed consume pending message calculation * ServiceProvider callback for NATS DI configuration (nats-io#619) * Nats web socket opts improvements (nats-io#623) * Fix various disposable issues (nats-io#625) * Make NuidWriter public (nats-io#618) * NatsOpts.ConfigureWebSocketOpts callback handler (nats-io#605)
* Fixed consume pending message calculation (#626) * ServiceProvider callback for NATS DI configuration (#619) * Nats web socket opts improvements (#623) * Fix various disposable issues (#625) * Make NuidWriter public (#618) * NatsOpts.ConfigureWebSocketOpts callback handler (#605) * Simplified NATS client (#607) * Update docs (#595) * Add default timeout to initial commands (#594) * Extensive logging for reconnect debugging (#593) * Add clear next step navigation to API index doc (#592) * Add NATS client implementation (#589)
* Fixed consume pending message calculation (#626) * ServiceProvider callback for NATS DI configuration (#619) * Nats web socket opts improvements (#623) * Fix various disposable issues (#625) * Make NuidWriter public (#618) * NatsOpts.ConfigureWebSocketOpts callback handler (#605) * Simplified NATS client (#607) * Update docs (#595) * Add default timeout to initial commands (#594) * Extensive logging for reconnect debugging (#593) * Add clear next step navigation to API index doc (#592) * Add NATS client implementation (#589)
This PR makes the
NuidWriter
class public, and moves it into theCore
namespace out of theInternal
namespace.Resolves #617.