Skip to content

Commit 53e2ba2

Browse files
committed
Pull request #86: update for enterprise-cosmos
Merge in COSMOSEE/base from enterprise-cosmos-update to master * commit '083ff739d4dd888d2a879df2ab91ae2ebcc59064': update for enterprise-cosmos
2 parents a5303ba + 083ff73 commit 53e2ba2

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

cosmos/lib/cosmos/utilities/authorization.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
# copyright holder
1919

2020
begin
21-
require 'cosmos-enterprise/utilities/authorization'
21+
require 'enterprise-cosmos/utilities/authorization'
2222
rescue LoadError
23-
# If we're not in cosmos-enterprise we define our own
23+
# If we're not in enterprise-cosmos we define our own
2424
module Cosmos
2525
class AuthError < StandardError
2626
end

cosmos/lib/cosmos/utilities/store.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
require 'connection_pool'
2424

2525
begin
26-
require 'cosmos-enterprise/utilities/store'
27-
$cosmos_enterprise = true
26+
require 'enterprise-cosmos/utilities/store'
27+
$enterprise_cosmos = true
2828
rescue LoadError
29-
$cosmos_enterprise = false
29+
$enterprise_cosmos = false
3030
end
3131

3232
module Cosmos
@@ -77,13 +77,13 @@ def initialize(pool_size = 10)
7777
@topic_offsets = {}
7878
end
7979

80-
unless $cosmos_enterprise
80+
unless $enterprise_cosmos
8181
def build_redis
8282
return Redis.new(url: @redis_url)
8383
end
8484
end
8585

86-
unless $cosmos_enterprise
86+
unless $enterprise_cosmos
8787
def get_tlm_values(items, scope: $cosmos_scope)
8888
values = []
8989
return values if items.empty?
@@ -275,7 +275,7 @@ def update_topic_offsets(topics)
275275
def self.read_topics(topics, offsets = nil, timeout_ms = 1000, &block)
276276
self.instance.read_topics(topics, offsets, timeout_ms, &block)
277277
end
278-
unless $cosmos_enterprise
278+
unless $enterprise_cosmos
279279
def read_topics(topics, offsets = nil, timeout_ms = 1000, &block)
280280
# Logger.debug "read_topics: #{topics}, #{offsets} pool:#{@redis_pool}"
281281
@redis_pool.with do |redis|

0 commit comments

Comments
 (0)