Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
pschork committed Oct 16, 2024
1 parent 3dfbef9 commit 5a7683d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion disperser/dataapi/queried_operators_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (s *server) getOperatorEjections(ctx context.Context, days int32, operatorI
return nil, err
}

s.logger.Info("Get operator ejections", "days", days, "operatorId", operatorId, "duration", time.Since(startTime))
s.logger.Info("Get operator ejections", "days", days, "operatorId", operatorId, "len", len(operatorEjections), "duration", time.Since(startTime))
return operatorEjections, nil
}

Expand Down
4 changes: 2 additions & 2 deletions disperser/dataapi/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -900,8 +900,8 @@ func (s *server) FetchOperatorEjections(c *gin.Context) {
return
}

if daysInt > 30 {
c.JSON(http.StatusBadRequest, gin.H{"error": "Invalid 'days' parameter. Max value is 30"})
if daysInt > 90 {
c.JSON(http.StatusBadRequest, gin.H{"error": "Invalid 'days' parameter. Max value is 90"})
return
}

Expand Down

0 comments on commit 5a7683d

Please sign in to comment.