Skip to content

Commit

Permalink
Removed uint type conversion when making the chan
Browse files Browse the repository at this point in the history
  * BufferSize was changed to default to uint and no longer needs this type conversion
  * this was requested by the repo owner
  • Loading branch information
wendall-robinson committed Nov 6, 2024
1 parent cde5228 commit edeba06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/outputs/nats_outputs/jetstream/jetstream_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (n *jetstreamOutput) Init(ctx context.Context, name string, cfg map[string]
return err
}

n.msgChan = make(chan *outputs.ProtoMsg, uint(n.Cfg.BufferSize))
n.msgChan = make(chan *outputs.ProtoMsg, n.Cfg.BufferSize)
initMetrics()
n.mo = &formatters.MarshalOptions{
Format: n.Cfg.Format,
Expand Down
2 changes: 1 addition & 1 deletion pkg/outputs/nats_outputs/nats/nats_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (n *NatsOutput) Init(ctx context.Context, name string, cfg map[string]inter
return err
}

n.msgChan = make(chan *outputs.ProtoMsg, uint(n.Cfg.BufferSize))
n.msgChan = make(chan *outputs.ProtoMsg, n.Cfg.BufferSize)
initMetrics()
n.mo = &formatters.MarshalOptions{
Format: n.Cfg.Format,
Expand Down

0 comments on commit edeba06

Please sign in to comment.