From 28b6c473c7560fb572c29ac7fb5779a22775c4c7 Mon Sep 17 00:00:00 2001 From: afon Date: Thu, 18 May 2017 10:46:21 +0800 Subject: [PATCH] fix readme typo --- readme.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index c2f68e9..fdb33f9 100644 --- a/readme.md +++ b/readme.md @@ -157,7 +157,7 @@ Interface: ### Publishing The client supports publishing to N `nsqd` servers, which must be specified -explicitly by hostname. Unlike with subscription, there is no facility to +explicitly by hostname. Unlike with subscription, there is no facility to lookup the hostnames via `nslookupd` (and we probably wouldn't want to anyway for speed). @@ -270,8 +270,8 @@ The client currently ships with one; a fixed delay strategy: ### De-duplication on subscribe Recall that to achieve HA we simply duplicate on publish into -two different `nsqd` servers. To perform de-duplication we simply need to -supply an object that implements `nsqphp\Dedupe\DedupeInterface`. +two different `nsqd` servers. To perform de-duplication we simply need to +supply an object that implements `nsqphp\Dedupe\DedupeInterface`. public function containsAndAdd($topic, $channel, MessageInterface $msg); @@ -338,7 +338,7 @@ file: $dedupe = new nsqphp\Dedupe\OppositeOfBloomFilterMemcached; $lookup = new nsqphp\Lookup\Nsqlookupd; $logger = new nsqphp\Logger\Stderr; - $nsq = new nsqphp\nsqphp($lookup, $dedupe, $requeueStrategy, logger); + $nsq = new nsqphp\nsqphp($lookup, $dedupe, $requeueStrategy, $logger); $nsq->subscribe('mytopic', 'somechannel', 'msgCallback') ->run(); @@ -355,4 +355,3 @@ file: - main client based on event loop (powered by React PHP) to allow us to handle multiple connections to multiple `nsqd` instances -