X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=service-exposure%2Frapps-rapp-invoker.go;h=21c72c04f007294f4a1a95e3c371fae932957d81;hb=1c7c5fc52d531205e3bd639fc4f2189c49f296cc;hp=4dc73591678aeb6aeea474cdde438b159e939669;hpb=28fa9fbfee514da8c85171facbabe6747f499988;p=nonrtric.git diff --git a/service-exposure/rapps-rapp-invoker.go b/service-exposure/rapps-rapp-invoker.go index 4dc73591..21c72c04 100644 --- a/service-exposure/rapps-rapp-invoker.go +++ b/service-exposure/rapps-rapp-invoker.go @@ -17,7 +17,6 @@ // limitations under the License. // ========================LICENSE_END=================================== // - package main import ( @@ -57,7 +56,7 @@ var role string var rapp string var methods string var healthy bool = true -var ttime time.Time +var ttime time.Time var jwt Jwttoken const ( @@ -80,7 +79,7 @@ func getToken(secretName string) string { ttime = time.Now() ttime = ttime.Add(time.Second * time.Duration(jwt.Expires_in)) } - return jwt.Access_token + return jwt.Access_token } func getSecret(secretName string) (string, string, string) {