Removed the whitespaces

Signed-off-by: Prashant Dwivedi <prashantdwivedi194@gmail.com>
This commit is contained in:
Prashant Dwivedi
2024-06-23 22:47:58 +05:30
parent 85cd1c46d4
commit b10c3067c8
4 changed files with 12 additions and 15 deletions

View File

@@ -139,7 +139,7 @@ func main() {
if grpcCfg.Port > 0 {
grpcSrv, _ := grpc.NewServer(&grpcCfg, logger)
//grpcinfoSrv, _ := grpc.NewInfoServer(&grpcCfg)
grpcServer = grpcSrv.ListenAndServe()
}

View File

@@ -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
}

View File

@@ -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"),
}
}
}

View File

@@ -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
}