Skip to content

Commit

Permalink
Merge pull request #5481 from ballerina-platform/dilanSachi-patch-1
Browse files Browse the repository at this point in the history
[master] Update gRPC version
  • Loading branch information
dilanSachi committed Jun 28, 2024
2 parents 89052e4 + e0b4204 commit cc2d142
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ public isolated client class RouteGuideClient {
}
}

public client class RecordRouteStreamingClient {
private grpc:StreamingClient sClient;
public isolated client class RecordRouteStreamingClient {
private final grpc:StreamingClient sClient;

isolated function init(grpc:StreamingClient sClient) {
self.sClient = sClient;
Expand Down Expand Up @@ -135,9 +135,9 @@ public class FeatureStream {

public isolated function next() returns record {|Feature value;|}|grpc:Error? {
var streamValue = self.anydataStream.next();
if (streamValue is ()) {
if streamValue is () {
return streamValue;
} else if (streamValue is grpc:Error) {
} else if streamValue is grpc:Error {
return streamValue;
} else {
record {|Feature value;|} nextRecord = {value: <Feature>streamValue.value};
Expand All @@ -150,8 +150,8 @@ public class FeatureStream {
}
}

public client class RouteChatStreamingClient {
private grpc:StreamingClient sClient;
public isolated client class RouteChatStreamingClient {
private final grpc:StreamingClient sClient;

isolated function init(grpc:StreamingClient sClient) {
self.sClient = sClient;
Expand Down Expand Up @@ -194,8 +194,8 @@ public client class RouteChatStreamingClient {
}
}

public client class RouteGuideRouteSummaryCaller {
private grpc:Caller caller;
public isolated client class RouteGuideRouteSummaryCaller {
private final grpc:Caller caller;

public isolated function init(grpc:Caller caller) {
self.caller = caller;
Expand Down Expand Up @@ -226,8 +226,8 @@ public client class RouteGuideRouteSummaryCaller {
}
}

public client class RouteGuideRouteNoteCaller {
private grpc:Caller caller;
public isolated client class RouteGuideRouteNoteCaller {
private final grpc:Caller caller;

public isolated function init(grpc:Caller caller) {
self.caller = caller;
Expand Down Expand Up @@ -258,8 +258,8 @@ public client class RouteGuideRouteNoteCaller {
}
}

public client class RouteGuideFeatureCaller {
private grpc:Caller caller;
public isolated client class RouteGuideFeatureCaller {
private final grpc:Caller caller;

public isolated function init(grpc:Caller caller) {
self.caller = caller;
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ stdlibYamlVersion=0.5.3
stdlibHttpVersion=2.11.1

# Stdlib Level 06
stdlibGrpcVersion=1.11.0
stdlibGrpcVersion=1.11.1
stdlibSoapVersion=1.0.0
stdlibTransactionVersion=1.9.0
stdlibWebsocketVersion=2.11.0
Expand All @@ -85,7 +85,7 @@ docUiApi=https://api.dev-central.ballerina.io/2.0/docs/doc-ui
graphqlToolVersion=0.10.0

# Protoc Tool
protocToolVersion=0.2.0
protocToolVersion=0.3.0

# OpenAPI Module
openapiToolVersion=2.0.0
Expand Down

0 comments on commit cc2d142

Please sign in to comment.