Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ormin committed Oct 30, 2024
1 parent 85459da commit 0496c87
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions interceptors/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ func StreamClientInterceptor(reportable ClientReportable) grpc.StreamClientInter
type monitoredClientStream struct {
grpc.ClientStream

startTime time.Time
startTime time.Time
hasServerStream bool
reporter Reporter
reporter Reporter
}

func (s *monitoredClientStream) SendMsg(m any) error {
Expand All @@ -75,5 +75,5 @@ func (s *monitoredClientStream) RecvMsg(m any) error {
} else {
s.reporter.PostCall(err, time.Since(s.startTime))
}
return err
return err
}
1 change: 0 additions & 1 deletion interceptors/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ func (s *ClientInterceptorTestSuite) TestBiStreamingReporting() {
}})
}


func (s *ClientInterceptorTestSuite) TestClientStream() {
ss, err := s.testClient.PingClientStream(s.ctx)
require.NoError(s.T(), err)
Expand Down
1 change: 0 additions & 1 deletion testing/testpb/pingservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ func (s *TestPingService) PingStream(stream TestService_PingStreamServer) error
return nil
}


func (s *TestPingService) PingClientStream(stream TestService_PingClientStreamServer) error {
count := 0
for {
Expand Down
5 changes: 3 additions & 2 deletions testing/testpb/test.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0496c87

Please sign in to comment.