Pass SonarState into SonarWebSocketImpl
Summary: Allowing the connection code to update trigger diagnostic events Reviewed By: passy Differential Revision: D9117507 fbshipit-source-id: 24eeb1f80109f89137a7333e04039c3ae9dc3e71
This commit is contained in:
committed by
Facebook Github Bot
parent
3237b60ff1
commit
c7858c62f7
@@ -31,8 +31,9 @@ static SonarClient* kInstance;
|
||||
using folly::dynamic;
|
||||
|
||||
void SonarClient::init(SonarInitConfig config) {
|
||||
auto state = std::make_shared<SonarState>();
|
||||
kInstance =
|
||||
new SonarClient(std::make_unique<SonarWebSocketImpl>(std::move(config)));
|
||||
new SonarClient(std::make_unique<SonarWebSocketImpl>(std::move(config), state), state);
|
||||
}
|
||||
|
||||
SonarClient* SonarClient::instance() {
|
||||
|
||||
Reference in New Issue
Block a user