Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | public function __construct(Endpoint $endpoint, Consuming $consuming = null) |
||
45 | { |
||
46 | if (is_null($consuming)) { |
||
47 | $this->pool = new Pool(new Options, function () use ($endpoint) { |
||
48 | return new Nsqd($endpoint); |
||
49 | }, "nsqd:{$endpoint->service()}"); |
||
50 | } else { |
||
51 | $this->nsqd = new Nsqd($endpoint, $consuming); |
||
52 | } |
||
81 |