Skip to content

Commit

Permalink
change downsampled streamer to streamer
Browse files Browse the repository at this point in the history
  • Loading branch information
Lham42 committed Sep 26, 2024
1 parent f0be03e commit 01d043e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion synnax/pkg/service/framer/downsampler/downsampler.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

const defaultBuffer = 25

func NewDownsampledStreamer(ctx context.Context, cfg framer.StreamerConfig, service *framer.Service) (framer.Streamer, error) {
func NewStreamer(ctx context.Context, cfg framer.StreamerConfig, service *framer.Service) (framer.Streamer, error) {
s, err := service.NewStreamer(ctx, cfg)
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion synnax/pkg/service/framer/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (s *Service) NewDeleter() framer.Deleter {

func (s *Service) NewStreamer(ctx context.Context, cfg framer.StreamerConfig) (framer.Streamer, error) {
if cfg.DownsampleFactor >= 1 {
return downsampler.NewDownsampledStreamer(ctx, cfg, s.Internal)
return downsampler.NewStreamer(ctx, cfg, s.Internal)
} else {
return s.Internal.NewStreamer(ctx, cfg)
}
Expand Down

0 comments on commit 01d043e

Please sign in to comment.