mirror of
https://github.com/actix/actix-extras.git
synced 2025-01-22 14:55:56 +01:00
cleaned up obvious syntax issue
This commit is contained in:
parent
bef5dfd90d
commit
512fe9c0e0
@ -260,12 +260,12 @@ impl Inner {
|
||||
)
|
||||
.await;
|
||||
} else {
|
||||
return ok(None).await
|
||||
return Ok(None)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
ok(None).await
|
||||
Ok(None)
|
||||
}
|
||||
|
||||
async fn update<B>(
|
||||
@ -311,7 +311,7 @@ impl Inner {
|
||||
|
||||
let state: HashMap<_, _> = state.collect();
|
||||
match serde_json::to_string(&state) {
|
||||
Err(e) => err(e.into()).await,
|
||||
Err(e) => Err(e.into()),
|
||||
Ok(body) =>
|
||||
self.addr
|
||||
.send(Command(resp_array!["SET", cachekey, body, "EX", &self.ttl]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user