grpc-getting-started
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -5,3 +5,3 @@ { | ||
"name": "grpc-getting-started", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"main": "none", | ||
@@ -8,0 +8,0 @@ "description": "Demonstration of the use of gRPC and front-end", |
@@ -620,2 +620,4 @@ # gRPC 入门指引 (最初版) | ||
> $ docker run -d --name envoy -p 12345:12345 envoy:v1 | ||
> # 不打包配置文件,直接使用本地配置文件路径,使用下面的命令 | ||
> $ docker run -d --name envoy -p 12345:12345 envoy:v1 -c /etc/envoy/envoy.yaml --config-yaml "$(cat <your-grpc-app>/envoy.yaml)" | ||
> ``` | ||
@@ -622,0 +624,0 @@ > |
@@ -623,2 +623,4 @@ # gRPC Getting Started (original version) | ||
> $ docker run -d --name envoy -p 12345:12345 envoy:v1 | ||
> # Do not package the configuration file, directly use the local configuration file path, use the following command: | ||
> $ docker run -d --name envoy -p 12345:12345 envoy:v1 -c /etc/envoy/envoy.yaml --config-yaml "$(cat <your-grpc-app>/envoy.yaml)" | ||
> ``` | ||
@@ -625,0 +627,0 @@ > |
@@ -78,12 +78,18 @@ import { PostList, Post, PostRow, FilterId } from '../proto/post_pb.js'; | ||
return new Promise((resolve, reject) => { | ||
this.callPostServiceAddPost = client.addPost((err, res) => { | ||
if (err) { | ||
this.callPostServiceAddPost.end(); | ||
reject(); | ||
} | ||
}); | ||
// this.callPostServiceAddPost = client.addPost({ | ||
// 'my-string': 'xxxxx-xxxxx-xxxxxx', | ||
// }); | ||
this.callPostServiceAddPost = client.addPost(); | ||
this.callPostServiceAddPost.write(streamReq); | ||
resolve(); | ||
this.callPostServiceAddPost.end(); | ||
this.callPostServiceAddPost.on('end', (response) => { | ||
resolve({ | ||
code: response.code, | ||
message: response.details | ||
}); | ||
}); | ||
}); | ||
@@ -186,3 +192,3 @@ } | ||
const resList = []; | ||
if (typeof data.data === 'undefined') return {}; | ||
for (const item of data.data) { | ||
@@ -189,0 +195,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2372548
3028