Move NetActorOnce to NetActor.h.
GitOrigin-RevId: e439137323dda416b07e091c4218eba0a4c73961
This commit is contained in:
parent
ece337342b
commit
a09e94370b
@ -84,17 +84,6 @@
|
||||
|
||||
namespace td {
|
||||
|
||||
class NetActorOnce : public NetActor {
|
||||
void hangup() override {
|
||||
on_error(0, Status::Error(500, "Request aborted"));
|
||||
stop();
|
||||
}
|
||||
|
||||
void on_result_finish() override {
|
||||
stop();
|
||||
}
|
||||
};
|
||||
|
||||
void dummyUpdate::store(TlStorerToString &s, const char *field_name) const {
|
||||
s.store_class_begin(field_name, "dummyUpdate");
|
||||
s.store_class_end();
|
||||
|
@ -39,4 +39,15 @@ class NetActor : public NetQueryCallback {
|
||||
Td *td;
|
||||
};
|
||||
|
||||
class NetActorOnce : public NetActor {
|
||||
void hangup() override {
|
||||
on_error(0, Status::Error(500, "Request aborted"));
|
||||
stop();
|
||||
}
|
||||
|
||||
void on_result_finish() override {
|
||||
stop();
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace td
|
||||
|
Reference in New Issue
Block a user