log error if we trip over too many pending messages for actor

This commit is contained in:
vyzo 2020-08-26 22:53:28 +03:00
parent 82ef0529d8
commit 038e83b647

View File

@ -166,6 +166,7 @@ func (ms *msgSet) add(m *types.SignedMessage, mp *MessagePool) (bool, error) {
}
if !has && len(ms.msgs) > MaxActorPendingMessages {
log.Errorf("too many pending messages from actor %s", m.Message.From)
return false, ErrTooManyPendingMessages
}