mirror of
https://github.com/grassrootseconomics/eth-tracker.git
synced 2026-05-24 12:26:17 +02:00
feat: self-bootstrapping tracker, jetstream updates
* This removes redis as a hard dependency * add profiler utils (temp)
This commit is contained in:
4
internal/cache/xmap.go
vendored
4
internal/cache/xmap.go
vendored
@@ -7,12 +7,12 @@ import (
|
||||
)
|
||||
|
||||
type mapCache struct {
|
||||
xmap *xsync.Map
|
||||
xmap *xsync.MapOf[string, bool]
|
||||
}
|
||||
|
||||
func NewMapCache() Cache {
|
||||
return &mapCache{
|
||||
xmap: xsync.NewMap(),
|
||||
xmap: xsync.NewMapOf[string, bool](),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user