fix comments

pull/562/head
Minh Doan 6 years ago committed by Minh Doan
parent 2e85578349
commit 06945e9e26
  1. 5
      api/proto/message/server.go
  2. 1
      cmd/demo/main.go

@ -22,6 +22,7 @@ type Server struct {
server *grpc.Server
}
// Process processes the Message and returns Response
func (s *Server) Process(ctx context.Context, message *Message) (*Response, error) {
return &Response{}, nil
}
@ -40,12 +41,12 @@ func (s *Server) Start(ip, port string) (*grpc.Server, error) {
return s.server, nil
}
// Start starts the Server on given ip and port.
// Stop stops the server.
func (s *Server) Stop() {
s.server.Stop()
}
// New creates new Server which implements ClientServiceServer interface.
// NewServer creates new Server which implements ClientServiceServer interface.
func NewServer() *Server {
return &Server{Port: Port}
}

@ -9,6 +9,7 @@ import (
msg_pb "github.com/harmony-one/harmony/api/proto/message"
)
// Constants for main demo.
const (
Port = "313131"
LocalIP = "127.0.0.1"

Loading…
Cancel
Save