mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-02-14 10:19:52 +00:00
Removed the whitespaces
Signed-off-by: Prashant Dwivedi <prashantdwivedi194@gmail.com>
This commit is contained in:
@@ -139,7 +139,7 @@ func main() {
|
||||
if grpcCfg.Port > 0 {
|
||||
grpcSrv, _ := grpc.NewServer(&grpcCfg, logger)
|
||||
//grpcinfoSrv, _ := grpc.NewInfoServer(&grpcCfg)
|
||||
|
||||
|
||||
grpcServer = grpcSrv.ListenAndServe()
|
||||
}
|
||||
|
||||
|
||||
@@ -13,8 +13,8 @@ type echoServer struct {
|
||||
logger *zap.Logger
|
||||
}
|
||||
|
||||
func (s *echoServer) Echo (ctx context.Context, message *echo.Message) (*echo.Message, error){
|
||||
func (s *echoServer) Echo(ctx context.Context, message *echo.Message) (*echo.Message, error) {
|
||||
|
||||
s.logger.Info("Received message body from client:", zap.String("input body", message.Body))
|
||||
return &echo.Message {Body: message.Body}, nil
|
||||
return &echo.Message{Body: message.Body}, nil
|
||||
}
|
||||
|
||||
@@ -4,20 +4,19 @@ import (
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
|
||||
func NewMockGrpcServer() *Server {
|
||||
config := &Config{
|
||||
Port: 9999,
|
||||
Port: 9999,
|
||||
// ServerShutdownTimeout: 5 * time.Second,
|
||||
// HttpServerTimeout: 30 * time.Second,
|
||||
BackendURL: []string{},
|
||||
ConfigPath: "/config",
|
||||
DataPath: "/data",
|
||||
BackendURL: []string{},
|
||||
ConfigPath: "/config",
|
||||
DataPath: "/data",
|
||||
// HttpClientTimeout: 30 * time.Second,
|
||||
UIColor: "blue",
|
||||
UIPath: ".ui",
|
||||
UIMessage: "Greetings",
|
||||
Hostname: "localhost",
|
||||
UIColor: "blue",
|
||||
UIPath: ".ui",
|
||||
UIMessage: "Greetings",
|
||||
Hostname: "localhost",
|
||||
}
|
||||
|
||||
logger, _ := zap.NewDevelopment()
|
||||
@@ -28,4 +27,4 @@ func NewMockGrpcServer() *Server {
|
||||
config: config,
|
||||
//tracer: trace.NewNoopTracerProvider().Tracer("mock"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,6 @@ type PanicServer struct {
|
||||
pb.UnimplementedPanicServiceServer
|
||||
config *Config
|
||||
logger *zap.Logger
|
||||
|
||||
}
|
||||
|
||||
func (s *PanicServer) Panic(ctx context.Context, req *pb.PanicRequest) (*pb.PanicResponse, error) {
|
||||
@@ -21,4 +20,3 @@ func (s *PanicServer) Panic(ctx context.Context, req *pb.PanicRequest) (*pb.Pani
|
||||
os.Exit(225)
|
||||
return &pb.PanicResponse{}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user