Remove redundant Slice copy constructor usages.

This commit is contained in:
levlam 2023-02-21 11:21:07 +03:00
parent de1c6a0ecd
commit 4b538adbdb
2 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ void NetQuery::set_error(Status status, string source) {
}
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") {
auto id = tl_constructor();

View File

@ -37,7 +37,7 @@ NetQueryPtr NetQueryCreator::create(uint64 id, const telegram_api::Function &fun
BufferSlice slice(storer.size());
auto real_size = storer.store(slice.as_mutable_slice().ubegin());
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();