Skip to content

Commit

Permalink
Minor improvements to README example.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jan 30, 2018
1 parent 3ded04e commit 0c071c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -36,7 +36,7 @@ require 'async/http/server'
require 'async/http/client'
require 'async/reactor'

server_addresses = [
endpoints = [
Async::IO::Endpoint.tcp('127.0.0.1', 9294, reuse_port: true)
]

Expand All @@ -46,8 +46,8 @@ class Server < Async::HTTP::Server
end
end

server = Server.new(server_addresses)
client = Async::HTTP::Client.new(server_addresses)
server = Server.new(endpoints)
client = Async::HTTP::Client.new(endpoints)

Async::Reactor.run do |task|
server_task = task.async do
Expand Down

0 comments on commit 0c071c6

Please sign in to comment.