Skip to content

Commit

Permalink
set grpc on env
Browse files Browse the repository at this point in the history
  • Loading branch information
glendmaatita committed Apr 18, 2024
1 parent d783c82 commit dfc9d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grpc/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function main() {
if (argv.target) {
target = argv.target;
} else {
target = 'localhost:50051';
target = process.env.GRPC_TARGET || 'localhost:50051';
}
var client = new news_proto.News(target,
grpc.credentials.createInsecure());
Expand Down

0 comments on commit dfc9d52

Please sign in to comment.