Skip to content

Commit

Permalink
feat: set default cdn loadLimit
Browse files Browse the repository at this point in the history
Signed-off-by: santong <[email protected]>
  • Loading branch information
244372610 committed Aug 19, 2021
1 parent 6b06ca6 commit 151967a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduler/supervisor/peer/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (m *manager) cleanupPeers() {
if peer.IsLeave() || peer.IsFail() || elapse > m.peerTTL {
logger.Debugf("delete peer %s because %s have passed since last access", peer.PeerID)
m.Delete(key.(string))
if !peer.Host.CDN && peer.Host.GetPeerTaskNum() == 0 {
if peer.Host.GetPeerTaskNum() == 0 {
m.hostManager.Delete(peer.Host.UUID)
}
}
Expand Down

0 comments on commit 151967a

Please sign in to comment.