storage/redis: add exiting info

Change-Id: I7876bf420a35b48314d14925f5f2ae591fa2d243
This commit is contained in:
onestraw 2019-01-23 13:10:37 +08:00
parent 7943288678
commit e83f68b952

View file

@ -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()