chore: remove ToUpper calls in main_service (#3947)

* chore: remove ToUpper calls in main_service

Also, test for IsPaused() first to avoid doing more checks for common-case.

---------

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
Roman Gershman 2024-10-18 17:04:47 +03:00 committed by GitHub
parent a7c9fde38e
commit 84e22aa658
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 48 additions and 55 deletions

View file

@ -64,7 +64,6 @@ class Service : public facade::ServiceInterface {
facade::ConnectionContext* CreateContext(util::FiberSocketBase* peer,
facade::Connection* owner) final;
std::pair<const CommandId*, CmdArgList> FindCmd(CmdArgList args) const;
const CommandId* FindCmd(std::string_view) const;
CommandRegistry* mutable_registry() {