mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-27 07:05:54 +00:00
@@ -21,8 +21,7 @@
|
||||
|
||||
#include <web/interface/ConnectionBase.h>
|
||||
|
||||
struct MockSession : public web::ConnectionBase
|
||||
{
|
||||
struct MockSession : public web::ConnectionBase {
|
||||
std::string message;
|
||||
void
|
||||
send(std::shared_ptr<std::string> msg_type) override
|
||||
@@ -41,9 +40,9 @@ struct MockSession : public web::ConnectionBase
|
||||
}
|
||||
};
|
||||
|
||||
struct MockDeadSession : public web::ConnectionBase
|
||||
{
|
||||
void send(std::shared_ptr<std::string>) override
|
||||
struct MockDeadSession : public web::ConnectionBase {
|
||||
void
|
||||
send(std::shared_ptr<std::string>) override
|
||||
{
|
||||
// err happen, the session should remove from subscribers
|
||||
ec_.assign(2, boost::system::system_category());
|
||||
|
||||
Reference in New Issue
Block a user