fix helloworld proto

This commit is contained in:
Asim Aslam
2021-06-11 22:28:08 +01:00
parent 1ae03a6011
commit 668625dbba
2 changed files with 3 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ import (
"github.com/micro/micro/v3/service"
"github.com/micro/micro/v3/service/logger"
"github.com/micro/services/helloworld/handler"
pb "github.com/micro/services/helloworld/proto"
)
func main() {
@@ -13,7 +14,7 @@ func main() {
)
// Register Handler
srv.Handle(new(handler.Helloworld))
pb.RegisterHelloworldHandler(srv.Server(), new(handler.Helloworld))
// Run the service
if err := srv.Run(); err != nil {

View File

@@ -5,7 +5,7 @@ package helloworld;
option go_package = "./proto;helloworld";
service Helloworld {
rpc Call(Request) returns (Response) {}
rpc Call(Request) returns (Response) {};
rpc Stream(StreamRequest) returns (stream StreamResponse) {};
}