Skip to content

Commit

Permalink
fix: panic on read local cache error (#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghaoz authored Jul 15, 2023
1 parent 5c2160f commit 9b5b39a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.20.x
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.20.x
id: go
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
unzip ~/.gorse/download/criteo.zip -d ~/.gorse/dataset
- name: Set up Go 1.20.x
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.20.x
id: go
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
retry-all: true

- name: Set up Go 1.20.x
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.20.x
id: go
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:

steps:
- name: Set up Go 1.20.x
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.20.x
id: go
Expand All @@ -188,7 +188,7 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
- uses: actions/setup-go@v4
with:
go-version: 1.20.x
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (s *Server) Serve() {
log.Logger().Info("no cache file found, create a new one", zap.String("path", s.cacheFile))
} else {
log.Logger().Error("failed to connect local store", zap.Error(err),
zap.String("path", state.path))
zap.String("path", s.cacheFile))
}
}
if state.ServerName == "" {
Expand Down
2 changes: 1 addition & 1 deletion worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ func (w *Worker) Serve() {
log.Logger().Info("no cache file found, create a new one", zap.String("path", state.path))
} else {
log.Logger().Error("failed to load persist state", zap.Error(err),
zap.String("path", state.path))
zap.String("path", w.cacheFile))
}
}
if state.WorkerName == "" {
Expand Down

0 comments on commit 9b5b39a

Please sign in to comment.