Skip to content

Commit

Permalink
feat: switch to mcaptcha_pow_sha256 from crates.io
Browse files Browse the repository at this point in the history
  • Loading branch information
realaravinth committed Oct 14, 2023
1 parent 6bc0d11 commit 6816d87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/pow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ use std::sync::Arc;

use crossbeam_channel::{self, Receiver, Sender};
use log::debug;
use pow_sha256::Config;
pub use pow_sha256::ConfigBuilder;
use pow_sha256::PoW;
use mcaptcha_pow_sha256::Config;
pub use mcaptcha_pow_sha256::ConfigBuilder;
use mcaptcha_pow_sha256::PoW;
use serde::{Deserialize, Serialize};

use crate::queue::Runnable;
Expand Down Expand Up @@ -58,7 +58,7 @@ pub struct Work {

impl From<Work> for PoW<String> {
fn from(w: Work) -> Self {
use pow_sha256::PoWBuilder;
use mcaptcha_pow_sha256::PoWBuilder;
PoWBuilder::default()
.result(w.result)
.nonce(w.nonce)
Expand Down
4 changes: 2 additions & 2 deletions src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use std::sync::Arc;

use actix::dev::*;
use pow_sha256::Config;
use mcaptcha_pow_sha256::Config;

use crate::cache::messages::*;
use crate::cache::Save;
Expand Down Expand Up @@ -203,7 +203,7 @@ where
#[cfg(test)]
mod tests {

use pow_sha256::ConfigBuilder;
use mcaptcha_pow_sha256::ConfigBuilder;

use super::System;
use super::*;
Expand Down

0 comments on commit 6816d87

Please sign in to comment.