spectre-project / rusty-spectre

Spectre full-node, wallet and related libraries in the Rust programming language.
ISC License
15 stars 7 forks source link

Update `Inner::open_db` to use `set_unique()` #15

Closed x100111010 closed 3 weeks ago

x100111010 commented 2 months ago

Updated the open_db method to use the set_unique() method instead of the deprecated unique() method.

We pass a reference to IdbIndexParameters (&id_index_params) when calling create_index_with_params because the method expects a reference rather than an owned value.