Skip to content

Commit

Permalink
undo limit for iteration for now
Browse files Browse the repository at this point in the history
  • Loading branch information
LbP22 committed Apr 23, 2024
1 parent 9496f3f commit a576dc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/backend/app/containerdb/containerdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func GetLogsByStatus(host string, container string, message string, status strin
counter := 0
iteration := 0
last_item := []string{}
for counter < limit && iteration < 10000 {
for counter < limit {
iteration += 1
key := iter.Key()
if len(key) == 0 {
Expand Down Expand Up @@ -159,7 +159,7 @@ func GetLogs(getPrev bool, include bool, host string, container string, message
counter := 0
iteration := 0
last_item := []string{}
for counter < limit && iteration < 10000 {
for counter < limit {
iteration += 1
key := string(iter.Key())
if len(key) == 0 {
Expand Down

0 comments on commit a576dc6

Please sign in to comment.