Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
modify gc err
Browse files Browse the repository at this point in the history
Signed-off-by: yunfeiyangbuaa <[email protected]>
  • Loading branch information
yunfeiyanggzq committed Aug 22, 2019
1 parent 8e41c83 commit 66969d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supernode/daemon/mgr/gc/gc_peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (gcm *Manager) gcPeers(ctx context.Context) {
continue
}

if peerState.ServiceDownTime != 0 &&
if peerState.ServiceDownTime == 0 ||
timeutils.GetCurrentTimeMillis()-peerState.ServiceDownTime < int64(gcm.cfg.PeerGCDelay) {
continue
}
Expand Down

0 comments on commit 66969d2

Please sign in to comment.