Skip to content

Commit

Permalink
fix: add another guard
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorwhitney committed Jan 14, 2025
1 parent c5bd2ad commit 71e42cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/pattern/aggregation/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ func (p *Push) buildPayload(ctx context.Context) ([]byte, error) {
}
}

if len(streams) == 0 {
return nil, nil
}

req := &logproto.PushRequest{
Streams: streams,
}
Expand Down

0 comments on commit 71e42cd

Please sign in to comment.