Skip to content
Snippets Groups Projects
Commit ef7fd5b9 authored by Olgun Cengiz's avatar Olgun Cengiz :drum:
Browse files

replaced GetData with GetString

parent be84ef80
No related branches found
No related tags found
2 merge requests!48Master,!4716 refactor deprecated functions
...@@ -28,7 +28,6 @@ import ( ...@@ -28,7 +28,6 @@ import (
"code.vereign.com/code/viam-apis/authentication" "code.vereign.com/code/viam-apis/authentication"
"code.vereign.com/code/viam-apis/key-storage-agent/api" "code.vereign.com/code/viam-apis/key-storage-agent/api"
"code.vereign.com/code/viam-apis/utils" "code.vereign.com/code/viam-apis/utils"
"code.vereign.com/code/viam-apis/system"
"golang.org/x/net/context" "golang.org/x/net/context"
"google.golang.org/grpc/metadata" "google.golang.org/grpc/metadata"
) )
...@@ -237,11 +236,9 @@ func (s *KeyStorageServerImpl) GetKeyId(ctx context.Context, in *api.GetKeyIdByK ...@@ -237,11 +236,9 @@ func (s *KeyStorageServerImpl) GetKeyId(ctx context.Context, in *api.GetKeyIdByK
keyIdResponse := &api.GetKeyIdByKeyResponse{} keyIdResponse := &api.GetKeyIdByKeyResponse{}
stringMessage := &system.String{} stringMessage, errorsString, err := dataStorageClient.GetString(keyToKeyIdTable, in.PublicKey)
if err == nil && errorsString == "" {
hasData, errorsString, err := dataStorageClient.GetData(keyToKeyIdTable, in.PublicKey, stringMessage) keyIdResponse.KeyId = stringMessage
if err == nil && errorsString == "" && hasData {
keyIdResponse.KeyId = stringMessage.Value
return keyIdResponse, nil return keyIdResponse, nil
} else { } else {
if err != nil { if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment