Remove redundant Slice copy constructor usages.
This commit is contained in:
parent
de1c6a0ecd
commit
4b538adbdb
@ -89,7 +89,7 @@ void NetQuery::set_error(Status status, string source) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (begins_with(status.message(), "INPUT_METHOD_INVALID")) {
|
if (begins_with(status.message(), "INPUT_METHOD_INVALID")) {
|
||||||
LOG(ERROR) << "Receive INPUT_METHOD_INVALID for query " << format::as_hex_dump<4>(Slice(query_.as_slice()));
|
LOG(ERROR) << "Receive INPUT_METHOD_INVALID for query " << format::as_hex_dump<4>(query_.as_slice());
|
||||||
}
|
}
|
||||||
if (status.message() == "BOT_METHOD_INVALID") {
|
if (status.message() == "BOT_METHOD_INVALID") {
|
||||||
auto id = tl_constructor();
|
auto id = tl_constructor();
|
||||||
|
@ -37,7 +37,7 @@ NetQueryPtr NetQueryCreator::create(uint64 id, const telegram_api::Function &fun
|
|||||||
BufferSlice slice(storer.size());
|
BufferSlice slice(storer.size());
|
||||||
auto real_size = storer.store(slice.as_mutable_slice().ubegin());
|
auto real_size = storer.store(slice.as_mutable_slice().ubegin());
|
||||||
LOG_CHECK(real_size == slice.size()) << real_size << " " << slice.size() << " "
|
LOG_CHECK(real_size == slice.size()) << real_size << " " << slice.size() << " "
|
||||||
<< format::as_hex_dump<4>(Slice(slice.as_slice()));
|
<< format::as_hex_dump<4>(slice.as_slice());
|
||||||
|
|
||||||
int32 tl_constructor = function.get_id();
|
int32 tl_constructor = function.get_id();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user