Skip to content

Commit

Permalink
Merge pull request #6 from wolfmetr/fix_readme
Browse files Browse the repository at this point in the history
fix readme
  • Loading branch information
wolfmetr authored Sep 19, 2024
2 parents eb4127f + 7a5f476 commit 0736481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

func main() {
cache, err := ristretto.NewCache(&ristretto.Config{
cache, err := ristretto.NewCache[string, string](&ristretto.Config[string, string]{
NumCounters: 1e3,
MaxCost: 1 << 30,
BufferItems: 64,
Expand All @@ -29,7 +29,7 @@ func main() {
defer cache.Close()

ristrettoCollector, err := ristretto_prometheus.NewCollector(
cache,
cache.Metrics,
ristretto_prometheus.WithNamespace("appname"),
ristretto_prometheus.WithSubsystem("subsystemname"),
ristretto_prometheus.WithConstLabels(prometheus.Labels{"app_version": "v1.2.3"}),
Expand Down

0 comments on commit 0736481

Please sign in to comment.