Skip to content

Conversation

@adespawn
Copy link
Contributor

@adespawn adespawn commented Nov 21, 2025

Compared to the DSx driver, this supports ids both as uuid and strings. When uuid is provided, it's converted to string, as this is how client id is represented in the Rust driver.

Fixes #322

@adespawn adespawn requested a review from wprzytula November 21, 2025 12:33
@adespawn adespawn self-assigned this Nov 21, 2025
@adespawn adespawn added this to the GA milestone Nov 21, 2025
adespawn and others added 2 commits November 21, 2025 16:43
Instead of extending client options after converting them to rust options,
we extend them with default values before that.
There were some inconsistencies in handling some default values
that are fix in this PR.
Compared to the DSx driver, this supports ids both as uuid and strings.
When uuid is provided, it's converted to string, as this is how client id
is represented in the Rust driver.
@adespawn adespawn force-pushed the add-support-for-client-id branch from d5550ce to 51c92ed Compare November 21, 2025 15:43
Comment on lines +667 to +669
if (rustOptions.cacheSize) {
rustOptions.cacheSize = options.maxPrepared;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this condition be if (options.maxPrepared)?

Copy link
Contributor

Choose a reason for hiding this comment

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

If yes, then we again lack testing - in this case unit testing.

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.

Report application information to server

2 participants