Skip to content

Commit

Permalink
Remove references of deleted functions
Browse files Browse the repository at this point in the history
  • Loading branch information
andyedison committed Sep 24, 2024
1 parent a3df510 commit 6468276
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions go/cache/ristretto/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"bytes"
"errors"
"fmt"
"hash/maphash"
"sync"
"sync/atomic"
"time"
Expand All @@ -38,9 +39,9 @@ var (
)

func defaultStringHash(key string) (uint64, uint64) {
const Seed1 = uint64(0x1122334455667788)
const Seed2 = uint64(0x8877665544332211)
return hack.RuntimeStrhash(key, Seed1), hack.RuntimeStrhash(key, Seed2)
var Seed1 = maphash.MakeSeed()
var Seed2 = maphash.MakeSeed()
return maphash.String(Seed1, key), maphash.String(Seed2, key)
}

type itemCallback func(*Item)
Expand Down

0 comments on commit 6468276

Please sign in to comment.