From 6b4e61f2788de608c1b7901dbc0cbd32919bab0c Mon Sep 17 00:00:00 2001 From: Moritz Date: Tue, 30 Apr 2024 18:27:06 +0200 Subject: [PATCH] Fix analyze issues --- example/helloworld/bin/client.dart | 2 +- example/helloworld/bin/server.dart | 2 +- example/helloworld/bin/unix_client.dart | 2 +- example/helloworld/bin/unix_server.dart | 2 +- interop/lib/src/client.dart | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/example/helloworld/bin/client.dart b/example/helloworld/bin/client.dart index 4d4635d9..4ec8e8e2 100644 --- a/example/helloworld/bin/client.dart +++ b/example/helloworld/bin/client.dart @@ -13,10 +13,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -/// Dart implementation of the gRPC helloworld.Greeter client. import 'package:grpc/grpc.dart'; import 'package:helloworld/src/generated/helloworld.pbgrpc.dart'; +/// Dart implementation of the gRPC helloworld.Greeter client. Future main(List args) async { final channel = ClientChannel( 'localhost', diff --git a/example/helloworld/bin/server.dart b/example/helloworld/bin/server.dart index 0f2b2878..a2b491c7 100644 --- a/example/helloworld/bin/server.dart +++ b/example/helloworld/bin/server.dart @@ -13,10 +13,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -/// Dart implementation of the gRPC helloworld.Greeter server. import 'package:grpc/grpc.dart'; import 'package:helloworld/src/generated/helloworld.pbgrpc.dart'; +/// Dart implementation of the gRPC helloworld.Greeter server. class GreeterService extends GreeterServiceBase { @override Future sayHello(ServiceCall call, HelloRequest request) async { diff --git a/example/helloworld/bin/unix_client.dart b/example/helloworld/bin/unix_client.dart index 5f30cc25..0c3cacc7 100644 --- a/example/helloworld/bin/unix_client.dart +++ b/example/helloworld/bin/unix_client.dart @@ -13,12 +13,12 @@ // See the License for the specific language governing permissions and // limitations under the License. -/// Dart implementation of the gRPC helloworld.Greeter client. import 'dart:io'; import 'package:grpc/grpc.dart'; import 'package:helloworld/src/generated/helloworld.pbgrpc.dart'; +/// Dart implementation of the gRPC helloworld.Greeter client. Future main(List args) async { final udsAddress = InternetAddress('localhost', type: InternetAddressType.unix); diff --git a/example/helloworld/bin/unix_server.dart b/example/helloworld/bin/unix_server.dart index 82fbf022..a30eaecf 100644 --- a/example/helloworld/bin/unix_server.dart +++ b/example/helloworld/bin/unix_server.dart @@ -13,12 +13,12 @@ // See the License for the specific language governing permissions and // limitations under the License. -/// Dart implementation of the gRPC helloworld.Greeter server. import 'dart:io'; import 'package:grpc/grpc.dart'; import 'package:helloworld/src/generated/helloworld.pbgrpc.dart'; +/// Dart implementation of the gRPC helloworld.Greeter server. class GreeterService extends GreeterServiceBase { @override Future sayHello(ServiceCall call, HelloRequest request) async { diff --git a/interop/lib/src/client.dart b/interop/lib/src/client.dart index 8cead2f1..a61fa817 100644 --- a/interop/lib/src/client.dart +++ b/interop/lib/src/client.dart @@ -208,7 +208,7 @@ class Tester { final receivedBytes = response.payload.body.length; if (receivedBytes != 314159) { throw 'Response payload mismatch. Expected 314159 bytes, ' - 'got ${receivedBytes}.'; + 'got $receivedBytes.'; } } @@ -869,7 +869,7 @@ class Tester { final receivedBytes = response.payload.body.length; if (receivedBytes != 314159) { throw 'Response payload mismatch. Expected 314159 bytes, ' - 'got ${receivedBytes}.'; + 'got $receivedBytes.'; } return response; }