mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
Don't ban when capacity has been reached (#1326)
This commit is contained in:
parent
739cffd918
commit
6172e48adc
@ -89,6 +89,12 @@ func (c *gRPCConnection) receiveLoop() error {
|
||||
if errors.Is(err, routerpkg.ErrRouteClosed) {
|
||||
return nil
|
||||
}
|
||||
|
||||
// ErrRouteCapacityReached isn't an invalid message error, so
|
||||
// we return it in order to log it later on.
|
||||
if errors.Is(err, routerpkg.ErrRouteCapacityReached) {
|
||||
return err
|
||||
}
|
||||
if c.onInvalidMessageHandler != nil {
|
||||
c.onInvalidMessageHandler(err)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user