MSP-8995 fix review comments
This commit is contained in:
1 parent
5fef05516b
commit
458f94cfd6
12 files changed
+28
-89
No files matched your search
@@ -32,7 +32,6 @@ func init() {
|
||||
}
|
||||
}
|
||||
|
||||
//nolint:gochecknoglobals
|
||||
var (
|
||||
codeMap = map[int]codes.Code{
|
||||
http.StatusOK: codes.OK,
|
||||
@@ -165,9 +164,6 @@ func (p Grpc) writeMetadata(ctx *request.Context) metadata.MD {
|
||||
|
||||
appAuthData, err := ctx.GetAuthData()
|
||||
if err == nil {
|
||||
md[grpc.SystemIdHeader] = []string{strconv.Itoa(appAuthData.SystemId)}
|
||||
md[grpc.DomainIdHeader] = []string{strconv.Itoa(appAuthData.DomainId)}
|
||||
md[grpc.ServiceIdHeader] = []string{strconv.Itoa(appAuthData.ServiceId)}
|
||||
md[grpc.ApplicationIdHeader] = []string{strconv.Itoa(appAuthData.ApplicationId)}
|
||||
encodedAppName := base64.StdEncoding.EncodeToString([]byte(appAuthData.AppName))
|
||||
md[grpc.ApplicationNameHeader] = []string{encodedAppName}
|
||||
|
||||
Reference in new issue
Block a user