mirror of
https://github.com/sot-tech/mochi.git
synced 2026-06-12 07:43:32 -07:00
storage/redis: add exiting info
Change-Id: I7876bf420a35b48314d14925f5f2ae591fa2d243
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user