mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +08:00
ci: adjust go toolchain version
This commit is contained in:
parent
81fe9e85d0
commit
d900412d41
2
.github/workflows/go.yml
vendored
2
.github/workflows/go.yml
vendored
@ -16,7 +16,7 @@ jobs:
|
|||||||
- name: Set up Go 1.x
|
- name: Set up Go 1.x
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.18rc1
|
go-version: 1.18.0-rc1
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -90,7 +90,7 @@ func (cache *Cache[T]) Add(key string, value T, ttl time.Duration) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GetKeys - return all keys of cache map
|
// GetKeys - return all keys of cache map
|
||||||
func (cache *Cache[T]) GetKeys() []string {
|
func (cache *Cache[_]) GetKeys() []string {
|
||||||
cache.lock.RLock()
|
cache.lock.RLock()
|
||||||
defer cache.lock.RUnlock()
|
defer cache.lock.RUnlock()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user