-
Notifications
You must be signed in to change notification settings - Fork 27
refactor: align event mapper and client lifecycle #462
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
Conversation
💡 Codex Reviewnostr-java/nostr-java-api/src/main/java/nostr/api/NostrSpringWebSocketClient.java Lines 39 to 62 in b2abab2
The new constructor chain marks ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting |
|
@codex address this ci error |
|
Summary
Testing
|
Summary
Related issue: #____
What changed?
GenericEventand refreshed supporting helpers so signing and dispatch use the clearerserializedEventCacheaccessors.EventJsonMapperto own the shared Jackson configuration and swapped previousIEventconstants and call sites to the new utility for cleaner dependencies.NostrSpringWebSocketClientwith an initialization-on-demand holder to remove volatile state while keeping lazy initialization semantics.BREAKING
None.
Review focus
EventJsonMapperwiring covers all formerIEvent.MAPPER_BLACKBIRDusages without leaving stray imports.NostrSpringWebSocketClientstill satisfies existing entry points.Checklist
Testing
mvn -q verify(fails: xyz.tcheeric:nostr-java-bom:1.1.1 missing from Maven Central)Network Access
https://chatgpt.com/codex/tasks/task_b_68e337e2acfc83319e62250f0db94bc8