mirror of
https://github.com/actix/actix-extras.git
synced 2025-02-02 10:59:03 +01:00
spelling check
This commit is contained in:
parent
f11752437c
commit
2555c34427
@ -69,7 +69,7 @@ impl Actor for RedisActor {
|
|||||||
Err(err) => {
|
Err(err) => {
|
||||||
error!("Can not connect to redis server: {}", err);
|
error!("Can not connect to redis server: {}", err);
|
||||||
// re-connect with backoff time.
|
// re-connect with backoff time.
|
||||||
// we stop currect context, supervisor will restart it.
|
// we stop current context, supervisor will restart it.
|
||||||
if let Some(timeout) = act.backoff.next_backoff() {
|
if let Some(timeout) = act.backoff.next_backoff() {
|
||||||
ctx.run_later(timeout, |_, ctx| ctx.stop());
|
ctx.run_later(timeout, |_, ctx| ctx.stop());
|
||||||
} else {
|
} else {
|
||||||
@ -80,7 +80,7 @@ impl Actor for RedisActor {
|
|||||||
.map_err(|err, act, ctx| {
|
.map_err(|err, act, ctx| {
|
||||||
error!("Can not connect to redis server: {}", err);
|
error!("Can not connect to redis server: {}", err);
|
||||||
// re-connect with backoff time.
|
// re-connect with backoff time.
|
||||||
// we stop currect context, supervisor will restart it.
|
// we stop current context, supervisor will restart it.
|
||||||
if let Some(timeout) = act.backoff.next_backoff() {
|
if let Some(timeout) = act.backoff.next_backoff() {
|
||||||
ctx.run_later(timeout, |_, ctx| ctx.stop());
|
ctx.run_later(timeout, |_, ctx| ctx.stop());
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user