fix(server): Initialize ServerFamily with all listeners. (#1485)

* fix(server): Initialize ServerFamily with all listeners.

- Add a test for CLIENT LIST which is the visible result of this.

* use std move
This commit is contained in:
Roy Jacobson 2023-07-02 10:01:54 +02:00 committed by GitHub
parent 1ee0e30255
commit 52192e0596
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 35 additions and 14 deletions

View file

@ -35,7 +35,7 @@ class Service : public facade::ServiceInterface {
explicit Service(util::ProactorPool* pp);
~Service();
void Init(util::AcceptServer* acceptor, util::ListenerInterface* main_interface,
void Init(util::AcceptServer* acceptor, std::vector<facade::Listener*> listeners,
const InitOpts& opts = InitOpts{});
void Shutdown();