Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
/build all
  • Loading branch information
kuvaldini committed Aug 23, 2021
1 parent 7fb3865 commit 5dea34b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion example/config.sample
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"block_store_path": "/tmp/block_store/",
"torii_port": 50051,
"internal_port": 10001,
"database": {
Expand Down
5 changes: 1 addition & 4 deletions irohad/ametsuchi/impl/rocksdb_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,6 @@ namespace iroha::ametsuchi::fmtstrings {

} // namespace iroha::ametsuchi::fmtstrings

#undef RDB_PATH_DOMAIN
#undef RDB_PATH_ACCOUNT
#undef RDB_ITEM

namespace {
auto constexpr kValue{FMT_STRING("{}")};
Expand Down Expand Up @@ -1022,7 +1019,7 @@ namespace iroha::ametsuchi {
typename T,
typename = std::enable_if_t<std::is_same<T, bool>::value>>
inline std::optional<bool> loadValue(
RocksDbCommon & /*common*/,
RocksDbCommon&,
expected::Result<rocksdb::Status, DbError> const &status) {
std::optional<bool> value;
if constexpr (kOp == kDbOperation::kGet) {
Expand Down
4 changes: 1 addition & 3 deletions libs/common/result.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,7 @@ namespace iroha {
typename std::enable_if<not std::is_same<decltype(f()), void>::value,
ReturnType>::type {
return r.match(
[&f](const Value<T> &) {
return TypeHelper::makeValue(f());
},
[&f](const Value<T> &) { return TypeHelper::makeValue(f()); },
[](const Error<E> &e) { return ReturnType(makeError(e.error)); });
}

Expand Down

0 comments on commit 5dea34b

Please sign in to comment.