Deprecate Database::flush() function
The Database::flush() function is only needed for the sled database on mobile, instead for mobile use the sqlite database.
This commit is contained in:
parent
0621ca89d5
commit
a111d25476
@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
- Add `sqlite-bundled` feature for deployments that need a bundled version of sqlite, ie. for mobile platforms.
|
- Add `sqlite-bundled` feature for deployments that need a bundled version of sqlite, ie. for mobile platforms.
|
||||||
- Added `Wallet::get_signers()`, `Wallet::descriptor_checksum()` and `Wallet::get_address_validators()`, exposed the `AsDerived` trait.
|
- Added `Wallet::get_signers()`, `Wallet::descriptor_checksum()` and `Wallet::get_address_validators()`, exposed the `AsDerived` trait.
|
||||||
|
- Deprecate `database::Database::flush()`, the function is only needed for the sled database on mobile, instead for mobile use the sqlite database.
|
||||||
|
|
||||||
## [v0.17.0] - [v0.16.1]
|
## [v0.17.0] - [v0.16.1]
|
||||||
|
|
||||||
|
@ -61,6 +61,7 @@ macro_rules! impl_from {
|
|||||||
|
|
||||||
macro_rules! impl_inner_method {
|
macro_rules! impl_inner_method {
|
||||||
( $enum_name:ident, $self:expr, $name:ident $(, $args:expr)* ) => {
|
( $enum_name:ident, $self:expr, $name:ident $(, $args:expr)* ) => {
|
||||||
|
#[allow(deprecated)]
|
||||||
match $self {
|
match $self {
|
||||||
$enum_name::Memory(inner) => inner.$name( $($args, )* ),
|
$enum_name::Memory(inner) => inner.$name( $($args, )* ),
|
||||||
#[cfg(feature = "key-value-db")]
|
#[cfg(feature = "key-value-db")]
|
||||||
|
@ -159,6 +159,10 @@ pub trait Database: BatchOperations {
|
|||||||
/// It should insert and return `0` if not present in the database
|
/// It should insert and return `0` if not present in the database
|
||||||
fn increment_last_index(&mut self, keychain: KeychainKind) -> Result<u32, Error>;
|
fn increment_last_index(&mut self, keychain: KeychainKind) -> Result<u32, Error>;
|
||||||
|
|
||||||
|
#[deprecated(
|
||||||
|
since = "0.18.0",
|
||||||
|
note = "The flush function is only needed for the sled database on mobile, instead for mobile use the sqlite database."
|
||||||
|
)]
|
||||||
/// Force changes to be written to disk
|
/// Force changes to be written to disk
|
||||||
fn flush(&mut self) -> Result<(), Error>;
|
fn flush(&mut self) -> Result<(), Error>;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user