feat: def traits to record captcha fetch stats

This commit is contained in:
realaravinth 2022-05-27 16:21:47 +05:30
parent 851874f8cf
commit 0d395ea67e
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88

View file

@ -223,6 +223,15 @@ pub trait MCDatabase: std::marker::Send + std::marker::Sync + CloneSPDatabase {
/// mark a notification read
async fn mark_notification_read(&self, username: &str, id: i32) -> DBResult<()>;
/// record PoWConfig fetches
async fn record_fetch(&self, key: &str) -> DBResult<()>;
/// record PoWConfig solves
async fn record_solve(&self, key: &str) -> DBResult<()>;
/// record PoWConfig confirms
async fn record_confirm(&self, key: &str) -> DBResult<()>;
}
#[derive(Debug, Clone, Default, Deserialize, Serialize, PartialEq)]