mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 11:19:24 +08:00
Chore: use any rather than interface{} (#74066)
This commit is contained in:
@ -43,8 +43,8 @@ func ProvideService(cfg *setting.Cfg, sqlStore db.DB, usageStats usagestats.Serv
|
||||
return s, nil
|
||||
}
|
||||
|
||||
func (ds *RemoteCache) getUsageStats(ctx context.Context) (map[string]interface{}, error) {
|
||||
stats := map[string]interface{}{}
|
||||
func (ds *RemoteCache) getUsageStats(ctx context.Context) (map[string]any, error) {
|
||||
stats := map[string]any{}
|
||||
stats["stats.remote_cache."+ds.Cfg.RemoteCacheOptions.Name+".count"] = 1
|
||||
encryptVal := 0
|
||||
if ds.Cfg.RemoteCacheOptions.Encryption {
|
||||
|
@ -115,7 +115,7 @@ func canNotFetchExpiredItems(t *testing.T, client CacheStorage) {
|
||||
}
|
||||
|
||||
func TestCollectUsageStats(t *testing.T) {
|
||||
wantMap := map[string]interface{}{
|
||||
wantMap := map[string]any{
|
||||
"stats.remote_cache.redis.count": 1,
|
||||
"stats.remote_cache.encrypt_enabled.count": 1,
|
||||
}
|
||||
|
Reference in New Issue
Block a user