mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 14:11:16 +08:00
DEV: Apply syntax_tree formatting to script/*
This commit is contained in:
@ -9,13 +9,9 @@ class ThreadDetective
|
||||
Thread.new { sleep 1 }
|
||||
end
|
||||
def self.start(max_threads)
|
||||
@thread ||= Thread.new do
|
||||
self.new.monitor(max_threads)
|
||||
end
|
||||
@thread ||= Thread.new { self.new.monitor(max_threads) }
|
||||
|
||||
@trace = TracePoint.new(:thread_begin) do |tp|
|
||||
Thread.current.origin = Thread.current.inspect
|
||||
end
|
||||
@trace = TracePoint.new(:thread_begin) { |tp| Thread.current.origin = Thread.current.inspect }
|
||||
@trace.enable
|
||||
end
|
||||
|
||||
@ -52,5 +48,4 @@ class ThreadDetective
|
||||
sleep 1
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user