This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the current index of the round-robin balancer thread-safe (#20)
* fix: make the current index of the round-robin balancer thread-safe * ci: upgrade go version to 1.21 * ci: upgrade golangci-lint version to 1.54
- Loading branch information
Showing
4 changed files
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,8 @@ jobs: | |
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.17 | ||
go-version: 1.21 | ||
cache: false | ||
|
||
- name: Build | ||
run: go build -v ./... | ||
|
@@ -25,7 +26,9 @@ jobs: | |
run: go test -v -race ./... | ||
|
||
- name: golangci-lint | ||
uses: golangci/[email protected] | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: v1.54 | ||
|
||
- name: Coverage | ||
run: go test -v ./... -coverprofile=coverage.txt -covermode=atomic | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/zehuamama/balancer | ||
|
||
go 1.17 | ||
go 1.21 | ||
|
||
require ( | ||
github.com/gorilla/mux v1.8.0 | ||
|