Skip to content

Commit 31f3967

Browse files
committed
chore(format): apply clang-format to fix lint violations
1 parent 012180f commit 31f3967

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

src/cli/main.cc

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,12 @@ struct NewOpt {
6363
static void PrintUsage(const char *program, std::ostream &os = std::cout) {
6464
os << program << " implements the Redis protocol based on RocksDB" << std::endl
6565
<< "Usage:" << std::endl
66-
<< std::left << new_opt << "-c, --config <filename>"
67-
<< "set config file to <filename>, or `-` for stdin" << std::endl
68-
<< new_opt << "-v, --version"
69-
<< "print version information" << std::endl
70-
<< new_opt << "-h, --help"
71-
<< "print this help message" << std::endl
72-
<< new_opt << "--<config-key> <config-value>"
73-
<< "overwrite specific config option <config-key> to <config-value>" << std::endl;
66+
<< std::left << new_opt << "-c, --config <filename>" << "set config file to <filename>, or `-` for stdin"
67+
<< std::endl
68+
<< new_opt << "-v, --version" << "print version information" << std::endl
69+
<< new_opt << "-h, --help" << "print this help message" << std::endl
70+
<< new_opt << "--<config-key> <config-value>" << "overwrite specific config option <config-key> to <config-value>"
71+
<< std::endl;
7472
}
7573

7674
static CLIOptions ParseCommandLineOptions(int argc, char **argv) {

src/types/redis_string.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ class String : public Database {
104104
std::optional<std::string> &old_value);
105105
rocksdb::Status GetDel(engine::Context &ctx, const std::string &user_key, std::string *value);
106106
rocksdb::Status Set(engine::Context &ctx, const std::string &user_key, const std::string &value);
107-
rocksdb::Status Set(engine::Context &ctx, const std::string &user_key, const std::string &value, const StringSetArgs &args,
108-
std::optional<std::string> &ret);
107+
rocksdb::Status Set(engine::Context &ctx, const std::string &user_key, const std::string &value,
108+
const StringSetArgs &args, std::optional<std::string> &ret);
109109
rocksdb::Status SetEX(engine::Context &ctx, const std::string &user_key, const std::string &value,
110110
uint64_t expire_ms);
111111
rocksdb::Status SetNX(engine::Context &ctx, const std::string &user_key, const std::string &value, uint64_t expire_ms,

tests/cppunit/config_test.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,8 @@ TEST(Config, LoadRocksDBDictionaryCompressionOptions) {
198198
unlink(path);
199199

200200
std::ofstream output_file(path, std::ios::out);
201-
output_file << "rocksdb.compression_max_dict_bytes 16384"
202-
<< "\n";
203-
output_file << "rocksdb.compression_zstd_max_train_bytes 262144"
204-
<< "\n";
201+
output_file << "rocksdb.compression_max_dict_bytes 16384" << "\n";
202+
output_file << "rocksdb.compression_zstd_max_train_bytes 262144" << "\n";
205203
output_file.close();
206204

207205
Config config;

0 commit comments

Comments
 (0)