Skip to content

Commit

Permalink
add ttl for accountsTraces
Browse files Browse the repository at this point in the history
  • Loading branch information
zakhar-petukhov committed Jul 23, 2023
1 parent d37493f commit 4108ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/event_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ func (h Handler) addToMempool(bytesBoc []byte) {
for _, account := range maps.Keys(accounts) {
traces, _ := h.mempoolEmulate.accountsTraces.Get(account)
traces = slices.Insert(traces, 0, hex.EncodeToString(hash))
h.mempoolEmulate.accountsTraces.Set(account, traces)
h.mempoolEmulate.accountsTraces.Set(account, traces, cache.WithExpiration(time.Second*30))
}
}

Expand Down

0 comments on commit 4108ef6

Please sign in to comment.