Skip to content

Commit

Permalink
Add secure conn in disperser client for GetBlobStatus (#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-shim authored May 3, 2024
1 parent 61ab512 commit 8ec570b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions clients/disperser_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 8ec570b

Please sign in to comment.