mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-09 07:50:14 +08:00
A previous refactor of the `Service::Base::Step` class introduced a non thread-safe behavior. `#call` mutates instance variables at runtime, and since a step instance is the same for any given service class, this can sometimes lead to `context` being the wrong one for the running service. This patch makes use of `Concurrent::ThreadLocalVar` to fix the issue. |
||
|---|---|---|
| .. | ||
| action_base.rb | ||
| base.rb | ||
| contract_base.rb | ||
| options_base.rb | ||
| policy_base.rb | ||
| runner.rb | ||
| steps_inspector.rb | ||