|
rpc Delete(DeleteRequest) returns (PutResponse); |
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?
examples/ch08/grpc/keyvalue/keyvalue.proto
Line 43 in 8aafc16
Shouldn't the
DeleteRequestreturn 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.gofile on page 236Deletedoes return a*PutResponse, aligned with the repo., so is this a typo in the book?