Skip to content

Commit

Permalink
Properly dispose of the channel
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignas committed Dec 17, 2023
1 parent 3b81b9a commit 698abb1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ class NukagitIntegrationTest extends Specification {
endpoint: http://localhost:${minio.getMappedPort(9000)}
"""

ManagedChannel channel = ManagedChannelBuilder.forAddress("localhost", grpcPort)
grpcChannel = ManagedChannelBuilder.forAddress("localhost", grpcPort)
.usePlaintext()
.build()
repositoriesGrpcClient = RepositoriesServiceGrpc.newBlockingStub(channel)
usersGrpcClient = UsersServiceGrpc.newBlockingStub(channel)
repositoriesGrpcClient = RepositoriesServiceGrpc.newBlockingStub(grpcChannel)
usersGrpcClient = UsersServiceGrpc.newBlockingStub(grpcChannel)

component.minio().makeBucket(MakeBucketArgs.builder()
.bucket("nukagit")
Expand Down

0 comments on commit 698abb1

Please sign in to comment.