Store env in thread-local variable
singpolyma opened this issue · 1 comments
singpolyma commented
Using https://ruby-doc.org/core-2.2.0/Thread.html#method-i-thread_variable_get
Currently stored Fibre-local, which is super confusing when my "env" suddenly becomes nil across fibres :P
singpolyma commented
No, obviously that won't work :P and can't use instance because we don't new up anything per request? Heh, I guess just mostly can't use that env helper in any but the simplest cases. :/