mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
shut down GRPC client after running QueryGRPC against a cluster
If you don't shut the client down, it leaves two goroutines running forever.
This commit is contained in:
parent
66ed216023
commit
8eaa4e592f
1 changed files with 1 additions and 0 deletions
|
|
@ -81,6 +81,7 @@ func (c *Cluster) QueryGRPC(t testing.TB, index, query string) *proto.TableRespo
|
|||
if err != nil {
|
||||
t.Fatalf("getting GRPC client: %v", err)
|
||||
}
|
||||
defer grpcClient.Close()
|
||||
|
||||
tableResp, err := grpcClient.QueryUnary(context.Background(), index, query)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue