Skip to content

Commit df148e4

Browse files
authored
Fix typos in client and protocol. (#745)
1 parent 392c450 commit df148e4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

addpartitionstotxn.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ type AddPartitionsToTxnRequest struct {
3535
Topics map[string][]AddPartitionToTxn
3636
}
3737

38-
// AddPartitioinsToTxnResponse is the response structure for the AddPartitioinsToTxn function.
39-
type AddPartitioinsToTxnResponse struct {
38+
// AddPartitionsToTxnResponse is the response structure for the AddPartitionsToTxn function.
39+
type AddPartitionsToTxnResponse struct {
4040
// The amount of time that the broker throttled the request.
4141
Throttle time.Duration
4242

@@ -62,7 +62,7 @@ type AddPartitionToTxnPartition struct {
6262
func (c *Client) AddPartitionsToTxn(
6363
ctx context.Context,
6464
req *AddPartitionsToTxnRequest,
65-
) (*AddPartitioinsToTxnResponse, error) {
65+
) (*AddPartitionsToTxnResponse, error) {
6666
protoReq := &addpartitionstotxn.Request{
6767
TransactionalID: req.TransactionalID,
6868
ProducerID: int64(req.ProducerID),
@@ -88,7 +88,7 @@ func (c *Client) AddPartitionsToTxn(
8888

8989
r := m.(*addpartitionstotxn.Response)
9090

91-
res := &AddPartitioinsToTxnResponse{
91+
res := &AddPartitionsToTxnResponse{
9292
Throttle: makeDuration(r.ThrottleTimeMs),
9393
Topics: make(map[string][]AddPartitionToTxnPartition, len(r.Results)),
9494
}

protocol/protocol.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ type GroupMessage interface {
439439
}
440440

441441
// TransactionalMessage is an extension of the Message interface implemented by some
442-
// request types to inform the program that they should be reouted to a transaction
442+
// request types to inform the program that they should be routed to a transaction
443443
// coordinator.
444444
type TransactionalMessage interface {
445445
// Returns the transactional id configured on the message.

0 commit comments

Comments
 (0)