Distributed Services with Go: use of ctx (B2, page 69, 91)

page 69:
The call of client.Produce in testProduceConsume does not use the predefined ctx variable as it does for other tests like testConsumePastBoundary:

produce, err := client.Produce( context.Background(), &api.ProduceRequest{...})

It’s either not sharing the predefined context, or does not use it consistently. The same applies to testUnauthorized on page 91.

2 Likes