Skip to content

Commit

Permalink
Polish examples/echo_server.rb
Browse files Browse the repository at this point in the history
```ruby
  def run
    loop do
      @selector.select { |monitor| monitor.value.call(monitor) }
    end
  end
```
The argument `monitor` seems useless.
  • Loading branch information
Zhang Kang authored and ioquatix committed Nov 19, 2019
1 parent 72e492a commit 7992293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/echo_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def initialize(host, port)

def run
loop do
@selector.select { |monitor| monitor.value.call(monitor) }
@selector.select { |monitor| monitor.value.call }
end
end

Expand Down

0 comments on commit 7992293

Please sign in to comment.