postrank-labs/goliath — Issue #110: Thread.current ?
Author: schmurfy
Created: 2011-12-09 20:55:16+00:00
State: open

While looking at the code I stumbled on something that really bother me:

```ruby
# Accessor for the current env object
#
# @note This will not work in a streaming server. You must pass around the env object.
#
# @return [Goliath::Env] The current environment data for the request
def env
Thread.current[GOLIATH_ENV]
end
```

is this legacy code ?
I did not found any evidence it is used ( and unless I missed something that's a good thing ! )