Skip to content

Commit e96ca34

Browse files
Update package name
1 parent aea8c75 commit e96ca34

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The server uses the following gRPC API defined in `news.proto`:
3939
```protobuf
4040
syntax = "proto3";
4141
import "google/protobuf/empty.proto";
42-
42+
package news;
4343
message News {
4444
int32 id = 1;
4545
string title = 2;

descriptor_set.bin

259 Bytes
Binary file not shown.

news.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
syntax = "proto3";
22

33
import "google/protobuf/empty.proto";
4+
package news;
45

56
message News {
67
int32 id = 1;

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const NEWS = [
2525
{ id: 5, title: "Note 5", body: "Content 5", postImage: "Post image 5" },
2626
];
2727

28-
server.addService(newsProto.NewsService.service, {
28+
server.addService(newsProto.news.NewsService.service, {
2929
getAllNews: (_, callback) => {
3030
callback(null, { news: NEWS });
3131
},

0 commit comments

Comments
 (0)