Skip to content

Commit be99ea2

Browse files
committed
Tweak other thread names
1 parent e2be918 commit be99ea2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/ldclient-rb/events.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,10 @@ def initialize(inbox, sdk_key, config, diagnostic_accumulator, event_sender)
243243
@events_in_last_batch = 0
244244

245245
outbox = EventBuffer.new(config.capacity, config.logger)
246-
flush_workers = NonBlockingThreadPool.new(MAX_FLUSH_WORKERS, 'EventDispatcher/FlushWorkers')
246+
flush_workers = NonBlockingThreadPool.new(MAX_FLUSH_WORKERS, 'LD/EventDispatcher/FlushWorkers')
247247

248248
if !@diagnostic_accumulator.nil?
249-
diagnostic_event_workers = NonBlockingThreadPool.new(1, 'EventDispatcher/DiagnosticEventWorkers')
249+
diagnostic_event_workers = NonBlockingThreadPool.new(1, 'LD/EventDispatcher/DiagnosticEventWorkers')
250250
init_event = @diagnostic_accumulator.create_init_event(config)
251251
send_diagnostic_event(init_event, diagnostic_event_workers)
252252
else

lib/ldclient-rb/impl/integrations/file_data_source.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def initialize(resolved_paths, interval, reloader, logger)
216216
end
217217
end
218218
end
219-
@thread.name = "LD/Impl/Integrations/FileDataSourceImpl/FileDataSourcePoller"
219+
@thread.name = "LD/FileDataSource"
220220
end
221221

222222
def stop

lib/ldclient-rb/impl/migrations/migrator.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ def write(key, context, default_stage, payload = nil)
188188
auth_handler = Thread.new { authoritative_result = authoritative.run }
189189
nonauth_handler = Thread.new { nonauthoritative_result = nonauthoritative.run }
190190

191-
auth_handler.name = "LD/Impl/Migrations/Migrator/auth_handler"
192-
nonauth_handler.name = "LD/Impl/Migrations/Migrator/nonauth_handler"
191+
auth_handler.name = "LD/Migrator#auth_handler"
192+
nonauth_handler.name = "LD/Migrator#nonauth_handler"
193193

194194
auth_handler.join()
195195
nonauth_handler.join()

0 commit comments

Comments
 (0)