We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
Using PersistedWallet<rusqlite::Connection> is not thread-safe because the PersistedWallet.marker because the rusqlite::Connection type is !Sync.
PersistedWallet<rusqlite::Connection>
PersistedWallet.marker
rusqlite::Connection
!Sync
To Reproduce
Try to use a PersistedWallet<rusqlite::Connection> where a Send + Sync type is required.
Expected behavior
Since PersistedWallet.marker is only PhantomData used by the type system it should not prevent PersistedWallet from being Send + Sync.
PhantomData
PersistedWallet
Build environment
Additional context
This issue was identified by @praveenperera who also suggested a solution. See discord chat:
https://discord.com/channels/753336465005608961/978744259693916230/1346317604335386705
The text was updated successfully, but these errors were encountered:
f44f2c6
notmandatory
Successfully merging a pull request may close this issue.
Describe the bug
Using
PersistedWallet<rusqlite::Connection>
is not thread-safe because thePersistedWallet.marker
because therusqlite::Connection
type is!Sync
.To Reproduce
Try to use a
PersistedWallet<rusqlite::Connection>
where a Send + Sync type is required.Expected behavior
Since
PersistedWallet.marker
is onlyPhantomData
used by the type system it should not preventPersistedWallet
from being Send + Sync.Build environment
Additional context
This issue was identified by @praveenperera who also suggested a solution. See discord chat:
https://discord.com/channels/753336465005608961/978744259693916230/1346317604335386705
The text was updated successfully, but these errors were encountered: