1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00

ci: adjust go toolchain version

This commit is contained in:
wdvxdr 2022-03-01 15:04:12 +08:00
parent 81fe9e85d0
commit d900412d41
No known key found for this signature in database
GPG Key ID: 703F8C071DE7A1B6
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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()