Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ljcui committed Mar 22, 2024
1 parent 8b1b214 commit 389cc8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osgraph/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ std::string topn_developer(lgraph_api::GraphDB &db, const std::string& request)
std::unordered_set<int64_t> get_repos_by_developer(lgraph_api::GraphDB &db, int64_t developer_vid) {
auto txn = db.CreateReadTxn();
auto vit = txn.GetVertexIterator(developer_vid);
auto deve_name = vit.GetField("name").AsString();
LOG_INFO() << FMA_FMT("get_repos_by_developer begin {}", deve_name);
int16_t push_id = txn.GetEdgeLabelId("push");

int16_t has_pr_id = txn.GetEdgeLabelId("has_pr");
Expand Down Expand Up @@ -482,6 +484,7 @@ std::unordered_set<int64_t> get_repos_by_developer(lgraph_api::GraphDB &db, int6
}
}
}
LOG_INFO() << FMA_FMT("get_repos_by_developer end {}", deve_name);
return repos;
}

Expand Down

0 comments on commit 389cc8b

Please sign in to comment.