feat: update novice captcha creation form to include publish_benchmarks

preference
This commit is contained in:
Aravinth Manivannan
2023-06-30 03:20:57 +05:30
parent 2cf5e48d8e
commit 2b82af9a0c
5 changed files with 27 additions and 5 deletions

View File

@@ -83,7 +83,11 @@ impl SystemGroup {
enum_system_wrapper!(get_pow, String, CaptchaResult<Option<PoWConfig>>);
// utility function to verify [Work]
pub async fn verify_pow(&self, msg: Work, ip: String) -> CaptchaResult<String> {
pub async fn verify_pow(
&self,
msg: Work,
ip: String,
) -> CaptchaResult<(String, u32)> {
match self {
Self::Embedded(val) => val.verify_pow(msg, ip).await,
Self::Redis(val) => val.verify_pow(msg, ip).await,