Skip to content

Commit fdec8a9

Browse files
authored
fix: action-tmate back to upstream, dead code removal (#2038)
cleanup: upstream action-tmate has taken my PR, drop master reference. Also remove dead code from api.go Signed-off-by: Dave Lee <[email protected]>
1 parent 0cc1ad2 commit fdec8a9

File tree

2 files changed

+3
-21
lines changed

2 files changed

+3
-21
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
PATH="$PATH:/root/go/bin" GO_TAGS="stablediffusion tts" make --jobs 5 --output-sync=target test
122122
- name: Setup tmate session if tests fail
123123
if: ${{ failure() }}
124-
uses: dave-gray101/action-tmate@master
124+
uses: mxschmitt/action-tmate@v3.18
125125
with:
126126
connect-timeout-seconds: 180
127127

@@ -174,7 +174,7 @@ jobs:
174174
make run-e2e-aio
175175
- name: Setup tmate session if tests fail
176176
if: ${{ failure() }}
177-
uses: dave-gray101/action-tmate@master
177+
uses: mxschmitt/action-tmate@v3.18
178178
with:
179179
connect-timeout-seconds: 180
180180

@@ -209,6 +209,6 @@ jobs:
209209
BUILD_TYPE="GITHUB_CI_HAS_BROKEN_METAL" CMAKE_ARGS="-DLLAMA_F16C=OFF -DLLAMA_AVX512=OFF -DLLAMA_AVX2=OFF -DLLAMA_FMA=OFF" make --jobs 4 --output-sync=target test
210210
- name: Setup tmate session if tests fail
211211
if: ${{ failure() }}
212-
uses: dave-gray101/action-tmate@master
212+
uses: mxschmitt/action-tmate@v3.18
213213
with:
214214
connect-timeout-seconds: 180

core/http/api.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -108,24 +108,6 @@ func App(application *core.Application) (*fiber.App, error) {
108108
return c.Next()
109109
}
110110

111-
// // Check for api_keys.json file
112-
// fileContent, err := os.ReadFile("api_keys.json")
113-
// if err == nil {
114-
// // Parse JSON content from the file
115-
// var fileKeys []string
116-
// err := json.Unmarshal(fileContent, &fileKeys)
117-
// if err != nil {
118-
// return c.Status(fiber.StatusInternalServerError).JSON(fiber.Map{"message": "Error parsing api_keys.json"})
119-
// }
120-
121-
// // Add file keys to options.ApiKeys
122-
// application.ApplicationConfig.ApiKeys = append(application.ApplicationConfig.ApiKeys, fileKeys...)
123-
// }
124-
125-
// if len(application.ApplicationConfig.ApiKeys) == 0 {
126-
// return c.Next()
127-
// }
128-
129111
authHeader := readAuthHeader(c)
130112
if authHeader == "" {
131113
return c.Status(fiber.StatusUnauthorized).JSON(fiber.Map{"message": "Authorization header missing"})

0 commit comments

Comments
 (0)