Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
fix: core gRPC service is not initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Feb 10, 2020
1 parent 7b091e0 commit 86dff35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dashevo/dapi",
"version": "0.10.0-dev.1",
"version": "0.10.0-dev.2",
"description": "A decentralized API for the Dash network",
"scripts": {
"api": "node scripts/api.js",
Expand Down
12 changes: 2 additions & 10 deletions scripts/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,9 @@ async function main() {
const coreHandlers = coreHandlersFactory(insightAPI);
const platformHandlers = platformHandlersFactory(rpcClient, driveAPI, dpp);

const handlers = {
...coreHandlers,
...platformHandlers,
};
const grpcApiServer = createServer(getCoreDefinition(), coreHandlers);

const definitions = {
...getCoreDefinition(),
...getPlatformDefinition(),
};

const grpcApiServer = createServer(definitions, handlers);
grpcApiServer.addService(getPlatformDefinition().service, platformHandlers);

grpcApiServer.bind(
`0.0.0.0:${config.grpcServer.port}`,
Expand Down

0 comments on commit 86dff35

Please sign in to comment.