Skip to content

Commit

Permalink
change return type of MockJoinGroupResponse.For & MockLeaveGroupRespo…
Browse files Browse the repository at this point in the history
…nse.For to encoderWithHeader
  • Loading branch information
Kranti Deep committed Jul 12, 2020
1 parent ac5ca79 commit ebbd858
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mockresponses.go
Expand Up @@ -1098,7 +1098,7 @@ func NewMockJoinGroupResponse(t TestReporter) *MockJoinGroupResponse {
}
}

func (m *MockJoinGroupResponse) For(reqBody versionedDecoder) encoder {
func (m *MockJoinGroupResponse) For(reqBody versionedDecoder) encoderWithHeader {
req := reqBody.(*JoinGroupRequest)
resp := &JoinGroupResponse{
Version: req.Version,
Expand Down Expand Up @@ -1162,7 +1162,7 @@ func NewMockLeaveGroupResponse(t TestReporter) *MockLeaveGroupResponse {
return &MockLeaveGroupResponse{t: t}
}

func (m *MockLeaveGroupResponse) For(reqBody versionedDecoder) encoder {
func (m *MockLeaveGroupResponse) For(reqBody versionedDecoder) encoderWithHeader {
resp := &LeaveGroupResponse{
Err: m.Err,
}
Expand Down

0 comments on commit ebbd858

Please sign in to comment.