This commit is contained in:
alex.sharov 2021-11-04 16:05:33 +07:00
parent 5d0f081a9c
commit f1a493914f

View File

@ -883,7 +883,7 @@ func (ss *SentryServerImpl) send(msgID proto_sentry.MessageId, peerID string, b
ch := ss.messageStreams[msgID][i]
ch <- req
if len(ch) > MessagesQueueSize/2 {
log.Warn("[sentry] consuming is slow", "msgID", msgID.String())
log.Debug("[sentry] consuming is slow, drop 50% of old messages", "msgID", msgID.String())
// evict old messages from channel
for j := 0; j < MessagesQueueSize/4; j++ {
select {