Skip to content

Commit

Permalink
remove deprecated code
Browse files Browse the repository at this point in the history
Signed-off-by: Sownak Roy <[email protected]>
  • Loading branch information
sownak committed Jan 30, 2025
1 parent 9cbcafc commit 46f4f65
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions services/ledger_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,16 +173,11 @@ func (ls LedgerService) openGRPCConnection(endpoint types.Network) (conn *grpc.C
}

if endpoint.UseTls {
// creds = credentials.NewTLS(&tls.Config{})
opts = append(opts, grpc.WithTransportCredentials(credentials.NewTLS(&tls.Config{})))
} else {
// creds = insecure.NewCredentials()
opts = append(opts, grpc.WithTransportCredentials(insecure.NewCredentials()))
}

// ctx, cancel := context.WithTimeout(context.Background(), endpoint.Timeout)
// defer cancel()

conn, err = grpc.NewClient(endpoint.Endpoint, opts...)
if err != nil {
log.Error().Err(err).Msgf("openGRPCConnection: context failed")
Expand Down

0 comments on commit 46f4f65

Please sign in to comment.