-
Notifications
You must be signed in to change notification settings - Fork 3
Casync clean #414
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
base: main
Are you sure you want to change the base?
Casync clean #414
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,6 +29,11 @@ const { HostMap } = require("./host.js"); | |
| // eslint-disable-next-line no-unused-vars | ||
| const { QueryOptions } = require("./query-options.js"); | ||
|
|
||
| // Initialize the direct-poll bridge once per process. | ||
| // This sets up the Tokio reactor thread and the wake mechanism used by all | ||
| // bridged async Rust functions (session queries, paging, etc.). | ||
| rust.initPollBridge(); | ||
|
Comment on lines
+32
to
+35
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❓ When is this executed? Is this guaranteed to be executed at most once? Is this idempotent?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When the file is first imported
Almost always yes: https://nodejs.org/docs/latest/api/modules.html#caching
No. The following calls will lead to a panic.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Do you think it's worth making it idempotent, i.e. setting an atomic flag at the beginning of its execution that prevents double initialization? |
||
|
|
||
| /** | ||
| * Represents a database client that maintains multiple connections to the cluster nodes, providing methods to | ||
| * execute CQL statements. | ||
|
|
||
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.
Typo in commit message:
There was a but->There was a bugThere 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.
lead->led