storage/redis: add exiting info
Change-Id: I7876bf420a35b48314d14925f5f2ae591fa2d243
This commit is contained in:
parent
7943288678
commit
e83f68b952
1 changed files with 2 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue