cortexproject / cortex

A horizontally scalable, highly available, multi-tenant, long term Prometheus.

Home Page:https://cortexmetrics.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replacing reprecated functions

yj-yoo opened this issue · comments

Is your feature request related to a problem? Please describe.
as 'reflect.StringHeader' is deprecated, it is replaced with an unsafe package.

Describe the solution you'd like
In the 'pkg/storage/inmemory_index_cache.go' file, the copyString() function that used relfect.StringHeader was replaced with the unsafe.StringData() and unsafe.Slice() functions.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.