refactor: Remove nostr last checked methods from database trait and implementations

This commit is contained in:
thesimplekid (aider)
2025-03-09 22:53:19 +00:00
committed by thesimplekid
parent 214b75ac31
commit cb87fefacd
6 changed files with 66 additions and 121 deletions

View File

@@ -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>;
}