MCPcopy
hub / github.com/segmentio/kafka-go / clientEndTxn

Function clientEndTxn

client_test.go:71–80  ·  view source on GitHub ↗
(client *Client, req *EndTxnRequest)

Source from the content-addressed store, hash-verified

69}
70
71func clientEndTxn(client *Client, req *EndTxnRequest) error {
72 ctx, cancel := context.WithTimeout(context.Background(), time.Second*30)
73 defer cancel()
74 resp, err := client.EndTxn(ctx, req)
75 if err != nil {
76 return err
77 }
78
79 return resp.Error
80}
81
82func newLocalClient() (*Client, func()) {
83 return newClient(TCP("localhost"))

Callers 3

Calls 1

EndTxnMethod · 0.80

Tested by

no test coverage detected