Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
Shiping Yao committed Nov 26, 2023
1 parent 0d78aa4 commit 0c94a5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/types/json.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@
constexpr ssize_t NOT_FOUND_INDEX = -1;
constexpr ssize_t NOT_ARRAY = -2;


struct JsonValue {

enum class NumOpEnum : uint8_t {
Incr = 1,
Mul = 2,
Expand Down
4 changes: 2 additions & 2 deletions src/types/redis_json.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ class Json : public Database {
rocksdb::Status write(Slice ns_key, JsonMetadata *metadata, const JsonValue &json_val);
rocksdb::Status read(const Slice &ns_key, JsonMetadata *metadata, JsonValue *value);
rocksdb::Status create(const std::string &ns_key, JsonMetadata &metadata, const std::string &value);
rocksdb::Status numop(JsonValue::NumOpEnum op, const std::string &user_key, const std::string &path, const std::string &value,
JsonValue *result);
rocksdb::Status numop(JsonValue::NumOpEnum op, const std::string &user_key, const std::string &path,
const std::string &value, JsonValue *result);
};

} // namespace redis

0 comments on commit 0c94a5e

Please sign in to comment.