From 7910c7b5112065a9179d1127931fd26436f211ae Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Mon, 22 Jan 2018 10:43:36 -0800 Subject: [PATCH] comment --- src/redis.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/redis.rs b/src/redis.rs index 184eb8621..a369dfacd 100644 --- a/src/redis.rs +++ b/src/redis.rs @@ -53,7 +53,8 @@ impl Actor for RedisActor { .map_err(|err, act, ctx| { error!("Can not connect to redis server: {}", err); debug!("{:?}", err); - // re-connect with backoff time + // re-connect with backoff time. + // we stop currect context, supervisor will restart it. if let Some(timeout) = act.backoff.next_backoff() { ctx.run_later(timeout, |_, ctx| ctx.stop()); } else {