diff options
author | Eric Wong <e@80x24.org> | 2016-02-24 01:44:21 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-02-24 02:31:52 +0000 |
commit | 74cb18404488a524996b39d4e93837bc23fb7fb8 (patch) | |
tree | bebe2f5849eb16bcf4995c998eb11fca6408d741 | |
parent | be8eb05977820c41d34f22d7a38ac31bdf3cce6d (diff) | |
download | raindrops-74cb18404488a524996b39d4e93837bc23fb7fb8.tar.gz |
The "defineclass" VM instruction takes more operands and uses more space than "setconstant". Since we have no methods or subclasses/constants to define under the "Raindrops::Middleware::Stats" class,
-rw-r--r-- | lib/raindrops/middleware.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/raindrops/middleware.rb b/lib/raindrops/middleware.rb index bf16924..da2fb9d 100644 --- a/lib/raindrops/middleware.rb +++ b/lib/raindrops/middleware.rb @@ -77,8 +77,7 @@ class Raindrops::Middleware # and both counters are updated atomically. # # This is supported on all operating systems supported by Raindrops - class Stats < Raindrops::Struct.new(:calling, :writing) - end + Stats = Raindrops::Struct.new(:calling, :writing) # :stopdoc: require "raindrops/middleware/proxy" |