Skip to content

Commit

Permalink
Feat: update actix version
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerchai committed Sep 12, 2020
1 parent 96b3cf6 commit 2b03437
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ name = "actix_casbin"
path = "src/lib.rs"

[dependencies]
actix = "0.9.0"
actix = "0.10.0"
casbin = { version = "2.0.1", default-features = false, features = [ "incremental", "cached"] }
actix-casbin-auth = { version = "0.4.2", default-features = false }
actix-casbin-auth = { version = "0.4.3", default-features = false }
tokio = { version = "0.2.22", default-features = false, optional = true }
async-std = { version = "1.6.3", default-features = false, optional = true }
futures = "0.3"
Expand Down
4 changes: 2 additions & 2 deletions src/casbin_actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ impl<T: IEnforcer + 'static> Handler<CasbinCmd> for CasbinActor<T> {
let e = match &self.enforcer {
Some(x) => x,
None => {
return Box::new(actix::fut::err(CasbinError::IoError(Error::new(
return Box::pin(actix::fut::err(CasbinError::IoError(Error::new(
ErrorKind::NotConnected,
"Enforcer dropped!",
))))
}
};
let cloned_enforcer = Arc::clone(e);
Box::new(
Box::pin(
async move {
let mut lock = cloned_enforcer.write().await;
let result = match msg {
Expand Down

0 comments on commit 2b03437

Please sign in to comment.