From e83f68b952d3724429dbc70078aa1ce5de5481f9 Mon Sep 17 00:00:00 2001 From: onestraw Date: Wed, 23 Jan 2019 13:10:37 +0800 Subject: [PATCH] storage/redis: add exiting info Change-Id: I7876bf420a35b48314d14925f5f2ae591fa2d243 --- storage/redis/peer_store.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/storage/redis/peer_store.go b/storage/redis/peer_store.go index 60564a2..59c2413 100644 --- a/storage/redis/peer_store.go +++ b/storage/redis/peer_store.go @@ -815,9 +815,8 @@ func (ps *peerStore) Stop() stop.Result { go func() { close(ps.closed) ps.wg.Wait() - // chihaya does not clear data in redis when exiting. - // chihaya keys have prefix `IPv{4,6}_`. - close(c) + log.Info("storage: exiting. chihaya does not clear data in redis when exiting. chihaya keys have prefix 'IPv{4,6}_'.") + c.Done() }() return c.Result()