mirror of
https://github.com/aljazceru/cdk.git
synced 2026-01-19 21:05:44 +01:00
refactor: Remove nostr last checked methods from database trait and implementations
This commit is contained in:
committed by
thesimplekid
parent
214b75ac31
commit
cb87fefacd
@@ -105,16 +105,4 @@ pub trait Database: Debug {
|
||||
async fn increment_keyset_counter(&self, keyset_id: &Id, count: u32) -> Result<(), Self::Err>;
|
||||
/// Get current Keyset counter
|
||||
async fn get_keyset_counter(&self, keyset_id: &Id) -> Result<Option<u32>, Self::Err>;
|
||||
|
||||
/// Get when nostr key was last checked
|
||||
async fn get_nostr_last_checked(
|
||||
&self,
|
||||
verifying_key: &PublicKey,
|
||||
) -> Result<Option<u32>, Self::Err>;
|
||||
/// Update last checked time
|
||||
async fn add_nostr_last_checked(
|
||||
&self,
|
||||
verifying_key: PublicKey,
|
||||
last_checked: u32,
|
||||
) -> Result<(), Self::Err>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user