Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Proto Kms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
Proto Kms
Commits
bac36979
Commit
bac36979
authored
1 year ago
by
Malte Bauch
Browse files
Options
Downloads
Patches
Plain Diff
Send kmsinfo earlier
parent
d5d94569
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kms/kmsetsi.go
+4
-4
4 additions, 4 deletions
kms/kmsetsi.go
with
4 additions
and
4 deletions
kms/kmsetsi.go
+
4
−
4
View file @
bac36979
...
...
@@ -145,10 +145,6 @@ func (es *etsiServer) ETSISendPayload(ctx context.Context, in *pb.ETSISendPayloa
return
nil
,
status
.
Errorf
(
codes
.
Internal
,
"No route found for path id: %s"
,
in
.
GetPathId
())
}
if
err
:=
route
.
Next
.
SendPayload
([]
byte
(
in
.
GetPayload
()),
pathId
);
err
!=
nil
{
return
nil
,
status
.
Errorf
(
codes
.
Internal
,
"Failed to send payload: "
,
err
)
}
// NOTE: For demo purpose only
json
,
err
:=
json
.
Marshal
(
KMSInfo
{
Name
:
es
.
handlingEkms
.
kmsName
,
...
...
@@ -164,6 +160,10 @@ func (es *etsiServer) ETSISendPayload(ctx context.Context, in *pb.ETSISendPayloa
log
.
Println
(
"Failed to send KMS info message: "
,
err
)
}
if
err
:=
route
.
Next
.
SendPayload
([]
byte
(
in
.
GetPayload
()),
pathId
);
err
!=
nil
{
return
nil
,
status
.
Errorf
(
codes
.
Internal
,
"Failed to send payload: "
,
err
)
}
return
&
pb
.
ETSISendPayloadResponse
{
Timestamp
:
time
.
Now
()
.
Unix
(),
},
nil
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment