Skip to content

Commit

Permalink
core
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan1993spb committed Dec 21, 2023
1 parent 96c56b0 commit 3ce009b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ func (c *Core) preloadState(ctx context.Context) {
return
}

if stateBotsNumber(state) > c.botsLimit {
log.WithField("bots_limit", c.botsLimit).Error("loaded state exceeds bots limit")
return
}

// Apply state
log.Info("applying loaded state")
c.applyState(ctx, state)
Expand Down

0 comments on commit 3ce009b

Please sign in to comment.