Skip to content

Commit

Permalink
Fixed native react DNS example.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalloc committed Sep 23, 2014
1 parent 3bb5e3e commit 42efe59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/promise-dns-react
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ function resolveDomainName($name, React\Dns\Resolver\Resolver $resolver)
return $resolver
->resolve($name)
->then(
function ($name) {
function ($ip) use ($name) {
echo 'Resolved "' . $name . '" to ' . $ip . PHP_EOL;
},
function ($e) {
function ($e) use ($name) {
echo 'Failed to resolve "' . $name . '" - ' . $e->getMessage() . PHP_EOL;
}
);
Expand Down

0 comments on commit 42efe59

Please sign in to comment.