Skip to content

Commit

Permalink
PR remarks
Browse files Browse the repository at this point in the history
Signed-off-by: Kaviraj <[email protected]>
  • Loading branch information
kavirajk committed Feb 19, 2024
1 parent e373341 commit 655844f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/logql/rangemapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ type RangeMapper struct {
metrics *MapperMetrics
stats *MapperStats

// SplitAlign
splitAlignTs time.Time
}

// NewRangeMapperWithSplitAlign is similar to `NewRangeMapper` except it accepts additonal `splitAlign` argument and used to
// align the subqueries generated according to that. Look at `rangeSplitAlign` method for more information.
func NewRangeMapperWithSplitAlign(interval time.Duration, splitAlign time.Time, metrics *MapperMetrics, stats *MapperStats) (RangeMapper, error) {
rm, err := NewRangeMapper(interval, metrics, stats)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/querier/queryrange/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (r *LokiInstantRequest) GetStart() time.Time {

func (r *LokiInstantRequest) WithStartEnd(s time.Time, _ time.Time) queryrangebase.Request {
clone := *r
clone.TimeTs = time.Unix(0, s.UnixNano())
clone.TimeTs = s
return &clone
}

Expand Down

0 comments on commit 655844f

Please sign in to comment.