about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-02-24 01:44:21 +0000
committerEric Wong <e@80x24.org>2016-02-24 02:31:52 +0000
commit74cb18404488a524996b39d4e93837bc23fb7fb8 (patch)
treebebe2f5849eb16bcf4995c998eb11fca6408d741
parentbe8eb05977820c41d34f22d7a38ac31bdf3cce6d (diff)
downloadraindrops-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.rb3
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"