Skip to content

Commit

Permalink
Fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcaseria committed May 14, 2024
1 parent 9ff7037 commit 0260bb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/cdk-redb/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ impl WalletDatabase for RedbWalletDatabase {
}

#[instrument(skip(self))]
async fn increment_keyset_counter(&self, keyset_id: &Id, count: u64) -> Result<(), Self::Err> {
async fn increment_keyset_counter(&self, keyset_id: &Id, count: u32) -> Result<(), Self::Err> {
let db = self.db.lock().await;

let current_counter;
Expand Down Expand Up @@ -535,7 +535,7 @@ impl WalletDatabase for RedbWalletDatabase {
}

#[instrument(skip(self))]
async fn get_keyset_counter(&self, keyset_id: &Id) -> Result<Option<u64>, Self::Err> {
async fn get_keyset_counter(&self, keyset_id: &Id) -> Result<Option<u32>, Self::Err> {
let db = self.db.lock().await;
let read_txn = db.begin_read().map_err(Error::from)?;
let table = read_txn.open_table(KEYSET_COUNTER).map_err(Error::from)?;
Expand Down

0 comments on commit 0260bb5

Please sign in to comment.