(options)
| 170 | }); |
| 171 | |
| 172 | function getClient(options) { |
| 173 | return { |
| 174 | metadata: { |
| 175 | _infos: {}, |
| 176 | getPreparedInfo: function (ks, q) { |
| 177 | let info = this._infos[ks + '.' + q]; |
| 178 | if (!info) { |
| 179 | info = this._infos[ks + '.' + q] = new events.EventEmitter().setMaxListeners(1000); |
| 180 | } |
| 181 | return info; |
| 182 | }, |
| 183 | setPreparedById: utils.noop |
| 184 | }, |
| 185 | options: utils.extend({ logEmitter: () => {}}, defaultOptions(), options), |
| 186 | profileManager: { |
| 187 | getDistance: function (h) { |
| 188 | return h.shouldBeIgnored ? types.distance.ignored : types.distance.local; |
| 189 | } |
| 190 | } |
| 191 | }; |
| 192 | } |
no test coverage detected