mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
chore: refactor a common code into a function (#1685)
Also, fix unreliable time measurement for http latency metric. Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
663c1f9e1b
commit
f2ddbe7307
2 changed files with 15 additions and 24 deletions
|
@ -140,6 +140,8 @@ class Service : public facade::ServiceInterface {
|
|||
const CommandId* FindCmd(CmdArgList args) const;
|
||||
|
||||
void EvalInternal(const EvalArgs& eval_args, Interpreter* interpreter, ConnectionContext* cntx);
|
||||
void CallSHA(CmdArgList args, std::string_view sha, Interpreter* interpreter,
|
||||
ConnectionContext* cntx);
|
||||
|
||||
// Return optional payload - first received error that occured when executing commands.
|
||||
std::optional<facade::CapturingReplyBuilder::Payload> FlushEvalAsyncCmds(ConnectionContext* cntx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue