From 9c7e411bf66a7a4697e5ed39fd52efa035472a3b Mon Sep 17 00:00:00 2001 From: Gert Drapers Date: Mon, 13 May 2024 11:50:46 -0700 Subject: [PATCH] fix ds-load connection closed (#121) --- cli/pkg/clients/directory_client.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cli/pkg/clients/directory_client.go b/cli/pkg/clients/directory_client.go index 2701783..f93d8a4 100644 --- a/cli/pkg/clients/directory_client.go +++ b/cli/pkg/clients/directory_client.go @@ -50,7 +50,6 @@ func NewDirectoryV2ImportClient(ctx context.Context, cfg *Config) (dsiv2.Importe if err != nil { return nil, err } - defer func() { _ = conn.Close() }() return dsiv2.NewImporterClient(conn), nil } @@ -81,7 +80,6 @@ func NewDirectoryV3ImportClient(ctx context.Context, cfg *Config) (dsiv3.Importe if err != nil { return nil, err } - defer func() { _ = conn.Close() }() return dsiv3.NewImporterClient(conn), nil }