Closed qazwsxedckll closed 8 months ago
@qazwsxedckll , we could get rid of GrainResponse completely. see https://github.com/asynkron/protoactor-go/issues/994
it is just a wrapper of the result message and don´t really bring any value
This looks fantastic!
I suddenly realized that the respond and onError callback are not necessary. You can just call ctx.Respond()
indise ctx.ReenterAfter()
. I was just imitating the interface in dotnet.
Two remaining problems.
Users have to clone and copy
protobuf/protoc-gen-go-grain/options/options.proto
, in order to use options. grpc-gateway also uses this method.Users have to unmarshal
*cluster.GrainResponse
to response type when using reenterancy. I cannot find a place to do this automatically.