From d900412d415ee2a7ea537d92813bd314a85c3389 Mon Sep 17 00:00:00 2001 From: wdvxdr Date: Tue, 1 Mar 2022 15:04:12 +0800 Subject: [PATCH] ci: adjust go toolchain version --- .github/workflows/go.yml | 2 +- utils/ttl.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index ff0d611a..9ad567f2 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v2 with: - go-version: 1.18rc1 + go-version: 1.18.0-rc1 - name: Check out code into the Go module directory uses: actions/checkout@v2 diff --git a/utils/ttl.go b/utils/ttl.go index 2d27e79e..6b43ca24 100644 --- a/utils/ttl.go +++ b/utils/ttl.go @@ -90,7 +90,7 @@ func (cache *Cache[T]) Add(key string, value T, ttl time.Duration) { } // GetKeys - return all keys of cache map -func (cache *Cache[T]) GetKeys() []string { +func (cache *Cache[_]) GetKeys() []string { cache.lock.RLock() defer cache.lock.RUnlock()