Skip to content

Commit

Permalink
fixup! Format + avoid formatter bug (crystal-lang#15112)
Browse files Browse the repository at this point in the history
  • Loading branch information
ysbaddaden committed Nov 4, 2024
1 parent 406d7d6 commit 4a66600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crystal/system/unix/evented/event_loop.cr
Original file line number Diff line number Diff line change
Expand Up @@ -466,12 +466,12 @@ abstract class Crystal::Evented::EventLoop < Crystal::EventLoop
when .io_read?
# reached read timeout: cancel io event; by rule the timer always wins,
# even in case of conflict with #unsafe_resume_io we must resume the fiber
Evented.arena.get?(event.value.index) { |event| event.value.@readers.delete(event) }
Evented.arena.get?(event.value.index) { |pd| pd.value.@readers.delete(event) }
event.value.timed_out!
when .io_write?
# reached write timeout: cancel io event; by rule the timer always wins,
# even in case of conflict with #unsafe_resume_io we must resume the fiber
Evented.arena.get?(event.value.index) { |event| event.value.@writers.delete(event) }
Evented.arena.get?(event.value.index) { |pd| pd.value.@writers.delete(event) }
event.value.timed_out!
when .select_timeout?
# always dequeue the event but only enqueue the fiber if we win the
Expand Down

0 comments on commit 4a66600

Please sign in to comment.