-
Notifications
You must be signed in to change notification settings - Fork 1k
chore: Improve scope/aggregator usage in replies #5286
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: main
Are you sure you want to change the base?
Conversation
src/server/bloom_family.cc
Outdated
@@ -179,10 +179,10 @@ void BloomFamily::MExists(CmdArgList args, const CommandContext& cmd_cntx) { | |||
return OpExists(t->GetOpArgs(shard), key, args); | |||
}; | |||
|
|||
OpResult res = cmd_cntx.tx->ScheduleSingleHopT(std::move(cb)); | |||
auto res = cmd_cntx.tx->ScheduleSingleHopT(std::move(cb)); |
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.
please do not convert to auto - when it hurts readability
src/facade/reply_builder.h
Outdated
void SendSimpleStrArr(const facade::ArgRange& strs); | ||
void SendBulkStrArr(const facade::ArgRange& strs, CollectionType ct = ARRAY); | ||
void SendLongArr(absl::Span<const long> longs); |
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.
instead of changing result types - let's make it more flexible.
template<typename I>` void SendLongArr(absl::Span<const I> longs) {
}
src/server/list_family.cc
Outdated
@@ -576,8 +576,8 @@ OpResult<string> OpIndex(const OpArgs& op_args, std::string_view key, long index | |||
return str; | |||
} | |||
|
|||
OpResult<vector<uint32_t>> OpPos(const OpArgs& op_args, string_view key, string_view element, | |||
int rank, uint32_t count, uint32_t max_len) { | |||
OpResult<vector<long>> OpPos(const OpArgs& op_args, string_view key, string_view element, int rank, |
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.
see my comment above
No description provided.