Fix service urls

This commit is contained in:
Bassem Dghaidi authored and GitHub committed 2024-09-24 03:29:14 -07:00
1 parent d5b926f306
commit cff4f084e2
5 files changed
+31 -18

No files matched your search

+2 -3
View File
@@ -2,8 +2,7 @@ import { HttpClient, HttpClientResponse, HttpCodes } from '@actions/http-client'
import { BearerCredentialHandler } from '@actions/http-client/lib/auth'
import { info, debug } from '@actions/core'
import { CacheServiceClientJSON } from '../generated/results/api/v1/cache.twirp'
import { CacheUrl } from './constants'
import { getRuntimeToken } from './config'
import { getRuntimeToken, getCacheServiceURL } from './config'
// import {getUserAgentString} from './user-agent'
// import {NetworkError, UsageError} from './errors'
@@ -31,7 +30,7 @@ class CacheServiceClient implements Rpc {
retryMultiplier?: number
) {
const token = getRuntimeToken()
this.baseUrl = CacheUrl
this.baseUrl = getCacheServiceURL()
if (maxAttempts) {
this.maxAttempts = maxAttempts
}