Shouldn't the DeleteRequest return a DeleteResponse? Seems correct in the book, or is it ok either way because both responses are an empty struct?
However, when looking at the generated keyvalue_grpc.pb.gofile on page 236 Delete does return a *PutResponse, aligned with the repo., so is this a typo in the book?
https://github.com/cloud-native-go/examples/blob/8aafc16cb3dc857464275c488824de394bfb9e44/ch08/grpc/keyvalue/keyvalue.proto#L43
Shouldn't the
DeleteRequest
return aDeleteResponse
? Seems correct in the book, or is it ok either way because both responses are an empty struct?However, when looking at the generated
keyvalue_grpc.pb.go
file on page 236Delete
does return a*PutResponse
, aligned with the repo., so is this a typo in the book?