Refactor connection (#1098)

Refactors dragonfly connection class
This commit is contained in:
Vladislav 2023-04-17 21:02:48 +03:00 committed by GitHub
parent c952251381
commit c65073eca9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 215 additions and 188 deletions

View file

@ -61,7 +61,7 @@ TestConnection::TestConnection(Protocol protocol, io::StringSink* sink)
: facade::Connection(protocol, nullptr, nullptr, nullptr), sink_(sink) {
}
void TestConnection::SendMsgVecAsync(PubMessage pmsg) {
void TestConnection::SendPubMessageAsync(PubMessage pmsg) {
if (pmsg.type == PubMessage::kPublish) {
messages.push_back(move(pmsg));
} else {