You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import ballerina/grpc;
listener grpc:Listener ep = new (9090);
@grpc:ServiceDescriptor {
descriptor: ROOT_DESCRIPTOR,
descMap: getDescriptorMap()
}
service "StreamingCalcService" on ep {
remote function sum(stream<int, grpc:Error?> clientStream) returns int|error {
int sum = 0;
error? e = clientStream.forEach(function (int value) {
sum += value;
});
return sum;
}
remote function incrementalSum(StreamingCalcServiceIntCaller caller, stream<int, grpc:Error?> clientStream) returns error? {
int sum = 0;
error? e = clientStream.forEach(function (int value) {
sum += value;
checkpanic caller->sendInt(sum);
});
check caller->complete();
}
}
The build is failing giving the following error,
ERROR [StreamingCalcService_sample_service.bal:(18:5,25:6)] expected caller type "StreamingCalcServiceStreamintgrpcErrorCaller" but found "StreamingCalcServiceIntCaller"
error: compilation contains errors
but the correct caller is passed in service implementation.
Affected Versions:
slalpha5
The text was updated successfully, but these errors were encountered:
Description:
Below is the proto definition,
Below is the service implementation,
The build is failing giving the following error,
but the correct caller is passed in service implementation.
Affected Versions:
slalpha5
The text was updated successfully, but these errors were encountered: