istox 0.1.157.11.pre.t1 → 0.1.157.11.t2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c153059c45a80a2943535a6a7d117a427155c92c51788f6b1a2dc8ead1af8fa
4
- data.tar.gz: 5fa6c306be3c8944f0c2168f1e54a0446bd84b8e838f2ffde341be38acd0b98e
3
+ metadata.gz: 0b060ee3ff5a5d08de37ec1bfc82c3323e0043e057cb85538dd0da9825620ebd
4
+ data.tar.gz: ccd3ae5ac920b3852b4346547d3e7163c363ff9cfcb9c883a7b65091e0c5747e
5
5
  SHA512:
6
- metadata.gz: a468734220c0bc70784c9f756f23509ab09c1982febb133ac8a879be8227a2650c9c1021c981a6ec2b1a8de9e5b5204b965ea4283069ab986164806b01f23c56
7
- data.tar.gz: 9fa45e75bea57560e8eab88d8ebb57e3565562b6be77c97890b4372f9cf76ae55b9a0f4ccce19218b8e08397b5206bf33911527f46d5c764ec9ab6cc28d331fb
6
+ metadata.gz: 86238a996b1b09379df6c5e3d0301397daa4add5e75690c888d631358c824cab0c939812377d6777e92b526d7f88ad65108dbd286a7918bdd559fc087624a98e
7
+ data.tar.gz: 10132f756ee02e38e7b2a08950b4b8f23bc1c7f713d34e11cfebd5d154f8b3aa3374e578df07b2f57edaf28aafbb18d49ffb6334e4c800e7caf9da271fd17380
@@ -83,12 +83,9 @@ module Istox
83
83
  log.info 'Reinitiating to grpc host at ' + host_url
84
84
  t1 = Time.now
85
85
  grpc_options = { hostname: host_url }
86
- if ENV.fetch('SSL_CHANNEL_CREDENTIALS', false)
87
- grpc_options[:channel_credentials] = ENV['SSL_CHANNEL_CREDENTIALS']
88
- elsif ENV.fetch('SSL_CERTIFICATE', false)
89
- grpc_options[:ssl_certificate] = ENV['SSL_CERTIFICATE']
90
- elsif ENV.fetch('SSL_CERTIFICATE_FILE', false)
91
- grpc_options[:ssl_certificate_file] = ENV['SSL_CERTIFICATE_FILE']
86
+ if ENV.fetch('USE_SSL_CHANNEL', false)
87
+ log.info 'Use SSL connection...'
88
+ grpc_options[:channel_credentials] = GRPC::Core::ChannelCredentials.new()
92
89
  end
93
90
  @@services[get_key(host_type, service)] = ::Gruf::Client.new(service: service, options: grpc_options, client_options: client_options)
94
91
  log.info "Time taken for reinitiating grpc host: #{Time.now - t1} seconds"
@@ -1,3 +1,3 @@
1
1
  module Istox
2
- VERSION = '0.1.157.11-t1'.freeze
2
+ VERSION = '0.1.157.11.t2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: istox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.157.11.pre.t1
4
+ version: 0.1.157.11.t2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siong Leng