Skip to content

Commit

Permalink
style: code format
Browse files Browse the repository at this point in the history
  • Loading branch information
super-Pan66 committed Apr 28, 2024
1 parent 3a1adcb commit 22b56e7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/cmd_admin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
*/

#include "cmd_admin.h"
#include "db.h"
#include "pstd/env.h"
#include "store.h"
#include "db.h"

namespace pikiwidb {

Expand Down Expand Up @@ -44,7 +44,8 @@ void CmdConfigSet::DoCmd(PClient* client) {
}

FlushdbCmd::FlushdbCmd(const std::string& name, int16_t arity)
: BaseCmd(name, arity, kCmdFlagsExclusive | kCmdFlagsAdmin | kCmdFlagsWrite, kAclCategoryWrite | kAclCategoryAdmin) {}
: BaseCmd(name, arity, kCmdFlagsExclusive | kCmdFlagsAdmin | kCmdFlagsWrite,
kAclCategoryWrite | kAclCategoryAdmin) {}

bool FlushdbCmd::DoInitial(PClient* client) { return true; }

Expand Down Expand Up @@ -73,7 +74,8 @@ void FlushdbCmd::DoCmd(PClient* client) {
}

FlushallCmd::FlushallCmd(const std::string& name, int16_t arity)
: BaseCmd(name, arity, kCmdFlagsExclusive | kCmdFlagsAdmin | kCmdFlagsWrite, kAclCategoryWrite | kAclCategoryAdmin) {}
: BaseCmd(name, arity, kCmdFlagsExclusive | kCmdFlagsAdmin | kCmdFlagsWrite,
kAclCategoryWrite | kAclCategoryAdmin) {}

bool FlushallCmd::DoInitial(PClient* client) { return true; }

Expand Down

0 comments on commit 22b56e7

Please sign in to comment.