Skip to content

Commit

Permalink
remove unnecessary log
Browse files Browse the repository at this point in the history
  • Loading branch information
Lham42 committed Sep 24, 2024
1 parent 16635a1 commit 2e0d7a0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions synnax/pkg/service/framer/downsampler/downsampler.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ package downsampler

import (
"context"
"github.com/sirupsen/logrus"
"github.com/synnaxlabs/synnax/pkg/distribution/framer"
"github.com/synnaxlabs/x/address"
"github.com/synnaxlabs/x/confluence"
Expand Down Expand Up @@ -63,12 +62,10 @@ func downsampleSeries(series telem.Series, factor int) telem.Series {

seriesLength := (len(series.Data) / factor) // / factor * int(series.DataType.Density())
downsampledData := make([]byte, 0, seriesLength)

for i := int64(0); i < series.Len(); i += int64(factor) {
start := i * int64(series.DataType.Density())
end := start + int64(series.DataType.Density())
downsampledData = append(downsampledData, series.Data[start:end]...)
logrus.Info("i = ", i) //TODO: remove
}

downsampledSeries := telem.Series{
Expand Down

0 comments on commit 2e0d7a0

Please sign in to comment.