-
Notifications
You must be signed in to change notification settings - Fork 110
new fields in rpcInvokeReqExtra #1508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| constexpr std::string_view lo_sv = "lo"; | ||
| constexpr std::string_view hi_sv = "hi"; | ||
|
|
||
| const auto underline = string{"_", 1}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: include please string header
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
runtime/interface.cpp
Outdated
|
|
||
| array out{std::pair{underline, mixed{}}, | ||
| std::pair{string{persistent_query_uuid_sv.data(), static_cast<string::size_type>(persistent_query_uuid_sv.size())}, mixed{}}, | ||
| std::pair{string{persistent_slot_uuid_sv.data(), static_cast<string::size_type>(persistent_slot_uuid_sv.size())}, mixed{}}}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as for runtime-light
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
common/tl/tl-types.h
Outdated
| @@ -0,0 +1,194 @@ | |||
| // Compiler for PHP (aka KPHP) | |||
| // Copyright (c) 2025 LLC «V Kontakte» | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace 2025 into 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| int64_t hi{}; | ||
|
|
||
| bool fetch() { | ||
| lo = tl_fetch_long(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Will be better to check error after each fetching attempt. You may lose original error code which is produced by lo = tl_fetch_long();.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| bool return_view_number{}; | ||
|
|
||
| bool fetch(tl::fetcher& tlf) noexcept; | ||
| tl::mask get_flags() const noexcept; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: newline between declarations
apolyakov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except single nit comment
| } | ||
| } | ||
|
|
||
| uint64_t get_flags() const noexcept { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be of type uint32_t
added:
persistent_query,trace_context,execution_context