Skip to content

Commit 699c0d8

Browse files
committed
Fix linter warnings and CI timeout
1 parent e9b125b commit 699c0d8

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
uses: golangci/golangci-lint-action@v4
5555
with:
5656
version: latest
57+
args: --timeout=5m
5758

5859
docker:
5960
runs-on: ubuntu-latest

cmd/server/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ func main() {
2525

2626
// Initialize logger
2727
logger := initLogger(cfg.LogLevel)
28-
defer logger.Sync()
28+
defer func() {
29+
_ = logger.Sync() // Ignore sync error on stdout/stderr
30+
}()
2931

3032
logger.Info("starting minipaas server",
3133
zap.String("port", cfg.ServerPort),

0 commit comments

Comments
 (0)