Skip to content

Commit

Permalink
Rename UserService to service
Browse files Browse the repository at this point in the history
  • Loading branch information
mortezaalizadeh committed Apr 10, 2021
1 parent ff04a3b commit 624b24d
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 78 deletions.
145 changes: 72 additions & 73 deletions contract/grpc/go/operations.pb.go

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

5 changes: 2 additions & 3 deletions contract/grpc/proto/operations.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ package user;
import "user-messages.proto";

/**
* The user servcie that can create new user, read, update and delete existing
* user
* The user servcie
*/
service UserService {
service Service {
// CreateUser creates a new user
// request: The request to create a new user
// Returns the result of creating new user
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ require (
github.com/go-kit/kit v0.10.0
github.com/go-ozzo/ozzo-validation v3.6.0+incompatible
github.com/golang/mock v1.5.0
github.com/golang/protobuf v1.4.3
github.com/lestrrat-go/jwx v1.1.5
github.com/lucsky/cuid v1.0.2
github.com/micro-business/go-core v0.6.1
Expand Down
2 changes: 1 addition & 1 deletion services/transport/grpc/transport-service.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (service *transportService) Start() error {
}

gRPCServer := grpc.NewServer()
userGRPCContract.RegisterUserServiceServer(gRPCServer, service)
userGRPCContract.RegisterServiceServer(gRPCServer, service)
service.logger.Info("gRPC service started", zap.String("address", address))

Live = true
Expand Down

0 comments on commit 624b24d

Please sign in to comment.