Skip to content

Commit eb2b7b7

Browse files
committed
revert
1 parent c13912d commit eb2b7b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/frontend/search_sharder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func (s asyncSearchSharder) RoundTrip(pipelineRequest pipeline.Request) (pipelin
105105
// Validate SpansPerSpanSet against MaxSpansPerSpanSet
106106
// If MaxSpansPerSpanSet is 0, it means unlimited spans are allowed
107107
// If MaxSpansPerSpanSet is non-zero, enforce the limit
108-
if s.cfg.MaxSpansPerSpanSet >= 0 && searchReq.SpansPerSpanSet > s.cfg.MaxSpansPerSpanSet {
108+
if s.cfg.MaxSpansPerSpanSet != 0 && searchReq.SpansPerSpanSet > s.cfg.MaxSpansPerSpanSet {
109109
return pipeline.NewBadRequest(fmt.Errorf("spans per span set exceeds %d. received %d", s.cfg.MaxSpansPerSpanSet, searchReq.SpansPerSpanSet)), nil
110110
}
111111

0 commit comments

Comments
 (0)