mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-04-13 14:19:08 +02:00
sdk: I am crazy and had removed the actual cache.Set() calls.
This commit is contained in:
parent
0caf8deb56
commit
2c19358c3a
@ -61,6 +61,7 @@ func fetchGenericList[I TagItemWithValue](
|
||||
items := parseItemsFromEventTags(events[0], parseTag)
|
||||
v.Event = events[0]
|
||||
v.Items = items
|
||||
cache.SetWithTTL(pubkey, v, time.Hour*6)
|
||||
valueWasJustCached[lockIdx] = true
|
||||
return v, true
|
||||
}
|
||||
@ -73,6 +74,7 @@ func fetchGenericList[I TagItemWithValue](
|
||||
v.Items = items
|
||||
sys.StoreRelay.Publish(ctx, *evt)
|
||||
}
|
||||
cache.SetWithTTL(pubkey, v, time.Hour*6)
|
||||
valueWasJustCached[lockIdx] = true
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user