argument ctx is overwritten before first use
43)
44
45// BidirectionalStream represents gRPC bidirectional stream server handler.
46func BidirectionalStream[Q any, R any](ctx context.Context, stream ServerStream, 47 concurrency int,
48 f func(context.Context, *Q) (*R, error),
49) (err error) {
Description
The function argument is overwritten before the passed value is read.
Bad practice
func (arg string) {
arg = "foo bar"
}
Recommended
func (arg string) {
use(arg)
arg = "foo bar"
}