Skip to content

Commit

Permalink
Merge "Fix TLS gRPC connection from peer to ordering service"
Browse files Browse the repository at this point in the history
  • Loading branch information
Srinivasan Muralidharan authored and Gerrit Code Review committed Mar 11, 2017
2 parents 4a22a58 + 589b4d6 commit 9ba5716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/deliverservice/deliveryclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func NewDeliverService(gossip blocksprovider.GossipServiceAdapter, endpoints []s
for _, idx := range indices {
logger.Infof("Creating delivery service to get blocks from the ordering service, %s", endpoints[idx])

dialOpts := []grpc.DialOption{grpc.WithInsecure(), grpc.WithTimeout(3 * time.Second), grpc.WithBlock()}
dialOpts := []grpc.DialOption{grpc.WithTimeout(3 * time.Second), grpc.WithBlock()}

if comm.TLSEnabled() {
dialOpts = append(dialOpts, grpc.WithTransportCredentials(comm.InitTLSForPeer()))
Expand Down

0 comments on commit 9ba5716

Please sign in to comment.