Fix syntax issue with client interceptors feature in 19.2.0. (#437)
diff --git a/protoc_plugin/CHANGELOG.md b/protoc_plugin/CHANGELOG.md
index 71ba701..c5a0df6 100644
--- a/protoc_plugin/CHANGELOG.md
+++ b/protoc_plugin/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 19.2.0+1
+
+* Fix syntax error introduced by gRPC client interceptor changes.
+
## 19.2.0
* Support client interceptors for gRPC. Requires grpc package 2.8.0 or newer.
diff --git a/protoc_plugin/lib/grpc_generator.dart b/protoc_plugin/lib/grpc_generator.dart
index 560c5cd..1d67d72 100644
--- a/protoc_plugin/lib/grpc_generator.dart
+++ b/protoc_plugin/lib/grpc_generator.dart
@@ -236,7 +236,7 @@
'return \$createStreamingCall(_\$$_dartName, request, options: options).single;');
} else if (!_clientStreaming && _serverStreaming) {
out.println(
- 'return \$createStreamingCall(_\$$_dartName, Stream.fromIterable([request]), options: options);');
+ 'return \$createStreamingCall(_\$$_dartName, $_stream.fromIterable([request]), options: options);');
} else {
out.println(
'return \$createUnaryCall(_\$$_dartName, request, options: options);');
diff --git a/protoc_plugin/pubspec.yaml b/protoc_plugin/pubspec.yaml
index 49eb0b8..a72497d 100644
--- a/protoc_plugin/pubspec.yaml
+++ b/protoc_plugin/pubspec.yaml
@@ -1,5 +1,5 @@
name: protoc_plugin
-version: 19.2.0
+version: 19.2.0+1
description: Protoc compiler plugin to generate Dart code
homepage: https://github.com/dart-lang/protobuf
diff --git a/protoc_plugin/test/goldens/grpc_service.pbgrpc b/protoc_plugin/test/goldens/grpc_service.pbgrpc
index 5b7bdf1..6cb0095 100644
--- a/protoc_plugin/test/goldens/grpc_service.pbgrpc
+++ b/protoc_plugin/test/goldens/grpc_service.pbgrpc
@@ -51,7 +51,7 @@
$grpc.ResponseStream<$0.Output> serverStreaming($0.Input request,
{$grpc.CallOptions options}) {
return $createStreamingCall(
- _$serverStreaming, Stream.fromIterable([request]),
+ _$serverStreaming, $async.Stream.fromIterable([request]),
options: options);
}