From 8ec570b8c2b266fad20ea0af14f0f5d84906c39c Mon Sep 17 00:00:00 2001 From: Ian Shim <100327837+ian-shim@users.noreply.github.com> Date: Fri, 3 May 2024 11:04:11 -0700 Subject: [PATCH] Add secure conn in disperser client for GetBlobStatus (#540) --- clients/disperser_client.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/clients/disperser_client.go b/clients/disperser_client.go index e711a3a974..fa930bdeca 100644 --- a/clients/disperser_client.go +++ b/clients/disperser_client.go @@ -201,10 +201,8 @@ func (c *disperserClient) DisperseBlobAuthenticated(ctx context.Context, data [] func (c *disperserClient) GetBlobStatus(ctx context.Context, requestID []byte) (*disperser_rpc.BlobStatusReply, error) { addr := fmt.Sprintf("%v:%v", c.config.Hostname, c.config.Port) - conn, err := grpc.Dial( - addr, - grpc.WithTransportCredentials(insecure.NewCredentials()), - ) + dialOptions := c.getDialOptions() + conn, err := grpc.Dial(addr, dialOptions...) if err != nil { return nil, err }