@@ -1007,7 +1007,7 @@ func BenchmarkMoreDataUnbuffered(b *testing.B) {
10071007 p .Add (
10081008 pipe .Function (
10091009 "seq" ,
1010- func (ctx context.Context , _ pipe.Env , stdin io.Reader , stdout io.Writer ) error {
1010+ func (_ context.Context , _ pipe.Env , _ io.Reader , stdout io.Writer ) error {
10111011 for i := 1 ; i <= 100000 ; i ++ {
10121012 fmt .Fprintln (stdout , i )
10131013 }
@@ -1025,7 +1025,7 @@ func BenchmarkMoreDataUnbuffered(b *testing.B) {
10251025 pipe .Command ("cat" ),
10261026 pipe .LinewiseFunction (
10271027 "count" ,
1028- func (ctx context.Context , _ pipe.Env , line []byte , stdout * bufio.Writer ) error {
1028+ func (_ context.Context , _ pipe.Env , _ []byte , _ * bufio.Writer ) error {
10291029 count ++
10301030 return nil
10311031 },
@@ -1052,7 +1052,7 @@ func BenchmarkMoreDataBuffered(b *testing.B) {
10521052 p .Add (
10531053 pipe .Function (
10541054 "seq" ,
1055- func (ctx context.Context , _ pipe.Env , stdin io.Reader , stdout io.Writer ) error {
1055+ func (_ context.Context , _ pipe.Env , _ io.Reader , stdout io.Writer ) error {
10561056 out := bufio .NewWriter (stdout )
10571057 for i := 1 ; i <= 1000000 ; i ++ {
10581058 fmt .Fprintln (out , i )
@@ -1071,7 +1071,7 @@ func BenchmarkMoreDataBuffered(b *testing.B) {
10711071 pipe .Command ("cat" ),
10721072 pipe .LinewiseFunction (
10731073 "count" ,
1074- func (ctx context.Context , _ pipe.Env , line []byte , stdout * bufio.Writer ) error {
1074+ func (_ context.Context , _ pipe.Env , _ []byte , stdout * bufio.Writer ) error {
10751075 count ++
10761076 return nil
10771077 },
0 commit comments