about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/rainbows/fiber/io.rb4
-rw-r--r--lib/rainbows/rev/client.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/rainbows/fiber/io.rb b/lib/rainbows/fiber/io.rb
index b8c91c5..3028eab 100644
--- a/lib/rainbows/fiber/io.rb
+++ b/lib/rainbows/fiber/io.rb
@@ -52,7 +52,7 @@ class Rainbows::Fiber::IO
           return
         when String
           buf = rv
-        when Kgio::WaitWritable
+        when :wait_writable
           wait_writable
         end
       end while true
@@ -93,7 +93,7 @@ class Rainbows::Fiber::IO
         case rv
         when nil
           raise EOFError, "end of file reached", []
-        when Kgio::WaitReadable
+        when :wait_readable
           wait_readable
         else
           return rv
diff --git a/lib/rainbows/rev/client.rb b/lib/rainbows/rev/client.rb
index e450d09..b7c1c78 100644
--- a/lib/rainbows/rev/client.rb
+++ b/lib/rainbows/rev/client.rb
@@ -30,7 +30,7 @@ module Rainbows
             case rv = @_io.kgio_trywrite(buf)
             when nil
               return enable_write_watcher
-            when Kgio::WaitWritable
+            when :wait_writable
               break # fall through to super(buf)
             when String
               buf = rv # retry, skb could grow or been drained