|
23 | 23 | require 'connection_pool' |
24 | 24 |
|
25 | 25 | begin |
26 | | - require 'cosmos-enterprise/utilities/store' |
27 | | - $cosmos_enterprise = true |
| 26 | + require 'enterprise-cosmos/utilities/store' |
| 27 | + $enterprise_cosmos = true |
28 | 28 | rescue LoadError |
29 | | - $cosmos_enterprise = false |
| 29 | + $enterprise_cosmos = false |
30 | 30 | end |
31 | 31 |
|
32 | 32 | module Cosmos |
@@ -77,13 +77,13 @@ def initialize(pool_size = 10) |
77 | 77 | @topic_offsets = {} |
78 | 78 | end |
79 | 79 |
|
80 | | - unless $cosmos_enterprise |
| 80 | + unless $enterprise_cosmos |
81 | 81 | def build_redis |
82 | 82 | return Redis.new(url: @redis_url) |
83 | 83 | end |
84 | 84 | end |
85 | 85 |
|
86 | | - unless $cosmos_enterprise |
| 86 | + unless $enterprise_cosmos |
87 | 87 | def get_tlm_values(items, scope: $cosmos_scope) |
88 | 88 | values = [] |
89 | 89 | return values if items.empty? |
@@ -275,7 +275,7 @@ def update_topic_offsets(topics) |
275 | 275 | def self.read_topics(topics, offsets = nil, timeout_ms = 1000, &block) |
276 | 276 | self.instance.read_topics(topics, offsets, timeout_ms, &block) |
277 | 277 | end |
278 | | - unless $cosmos_enterprise |
| 278 | + unless $enterprise_cosmos |
279 | 279 | def read_topics(topics, offsets = nil, timeout_ms = 1000, &block) |
280 | 280 | # Logger.debug "read_topics: #{topics}, #{offsets} pool:#{@redis_pool}" |
281 | 281 | @redis_pool.with do |redis| |
|
0 commit comments