MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / process_query_error

Method process_query_error

net/TcpClient.hpp:311–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309 }
310 }
311 void process_query_error(ConnectionId connection_id, QueryId id, td::Status error) {
312 auto it = active_connections_.find(connection_id);
313 if (it == active_connections_.end()) {
314 return;
315 }
316 auto it2 = out_queries_.find(id);
317 if (it2 != out_queries_.end()) {
318 td::actor::send_closure(it2->second, &TcpOutboundQuery::answer_error, std::move(error));
319 }
320 }
321 void process_query(ConnectionId connection_id, QueryId id, td::BufferSlice data) {
322 LOG(DEBUG) << "tcp: processing query from " << connection_id;
323 auto it = active_connections_.find(connection_id);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected