Skip to content

Commit

Permalink
code-commenting problem (vesoft-inc#2374)
Browse files Browse the repository at this point in the history
* correct code comments

regin => region

* correct code commit

whick => which

* correct code commit

minues => minutes

* correct code comments 

cahce=>cache
opeartions=>operations

* correct code comments

refesh=>refresh
shcem=>schema

Co-authored-by: Yee <2520865+yixinglu@users.noreply.github.com>
  • Loading branch information
xs-li and yixinglu authored Oct 29, 2020
1 parent b4ace3f commit 40e39ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/meta/client/MetaClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void MetaClient::heartBeatThreadFunc() {
return;
}

// if MetaServer has some changes, refesh the localCache_
// if MetaServer has some changes, refresh the localCache_
loadData();
loadCfg();
}
Expand Down Expand Up @@ -266,7 +266,7 @@ static EdgeSchemas __buildEdgeSchemas(std::vector<cpp2::EdgeItem> edgeItemVec) {
schema->addField(colIt.name, std::move(colIt.type));
schema->addDefaultValue(colIt.name, std::move(colIt.default_value));
}
// handle shcem property
// handle schema property
schema->setProp(edgeIt.schema.get_schema_prop());
edgeSchemas.emplace(std::make_pair(edgeIt.edge_type, edgeIt.version), schema);
}
Expand Down
4 changes: 2 additions & 2 deletions src/meta/client/MetaClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ struct SpaceDesc {
};


// config cahce, get config via module and name
// config cache, get config via module and name
using MetaConfigMap = std::unordered_map<std::pair<cpp2::ConfigModule, std::string>, ConfigItem>;

class MetaChangedListener {
Expand Down Expand Up @@ -402,7 +402,7 @@ class MetaClient {

folly::Future<StatusOr<std::vector<cpp2::Snapshot>>> listSnapshots();

// Opeartions for cache.
// Operations for cache.
StatusOr<GraphSpaceID>
getSpaceIdByNameFromCache(const std::string& name);

Expand Down

0 comments on commit 40e39ee

Please sign in to comment.