Skip to content
Snippets Groups Projects
Commit eed8ce26 authored by Neil-Jocelyn Schark's avatar Neil-Jocelyn Schark
Browse files

fix error

parent 75527751
No related branches found
No related tags found
3 merge requests!11Big boom integration,!10Add linting,!6Draft: Akms ckms api implementation
Pipeline #180718 failed
...@@ -142,7 +142,7 @@ func (es *etsiServer) ETSIAssignForwarding(ctx context.Context, in *pb.ETSIAssig ...@@ -142,7 +142,7 @@ func (es *etsiServer) ETSIAssignForwarding(ctx context.Context, in *pb.ETSIAssig
func (es *etsiServer) ETSISendPayload(ctx context.Context, in *pb.ETSISendPayloadRequest) (*pb.ETSISendPayloadResponse, error) { func (es *etsiServer) ETSISendPayload(ctx context.Context, in *pb.ETSISendPayloadRequest) (*pb.ETSISendPayloadResponse, error) {
pathId, err := uuid.Parse(in.GetPathId()) pathId, err := uuid.Parse(in.GetPathId())
if err != nil { if err != nil {
return nil, status.Errorf(codes.InvalidArgument, "The given path id %s is no uuid; err = ", in.GetPathId(), err) return nil, status.Errorf(codes.InvalidArgument, "The given path id %s is no uuid; err = %s ", in.GetPathId(), err)
} }
route, ok := es.handlingEkms.routingTable[pathId] route, ok := es.handlingEkms.routingTable[pathId]
...@@ -166,7 +166,7 @@ func (es *etsiServer) ETSISendPayload(ctx context.Context, in *pb.ETSISendPayloa ...@@ -166,7 +166,7 @@ func (es *etsiServer) ETSISendPayload(ctx context.Context, in *pb.ETSISendPayloa
//} //}
if err := route.Next.SendPayload([]byte(in.GetPayload()), pathId); err != nil { if err := route.Next.SendPayload([]byte(in.GetPayload()), pathId); err != nil {
return nil, status.Errorf(codes.Internal, "Failed to send payload: ", err) return nil, status.Errorf(codes.Internal, "Failed to send payload: %s", err)
} }
return &pb.ETSISendPayloadResponse{ return &pb.ETSISendPayloadResponse{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment