Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
agouin committed Jan 30, 2024
1 parent d5c4a04 commit 34d60fa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions relayer/processor/path_end_runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,7 @@ func (pathEnd *pathEndRuntime) mergeMessageCache(
channelHandshakeMessages := make(ChannelMessagesCache)
clientICQMessages := make(ClientICQMessagesCache)

for _, psc := range messageCache.PacketState {
psc.Prune(100) // Only keep most recent 100 packet states per channel
}
messageCache.PacketState.Prune(100) // Only keep most recent 100 packet states per channel

for ch, pmc := range messageCache.PacketFlow {
if pathEnd.ShouldRelayChannel(ChainChannelKey{
Expand Down

0 comments on commit 34d60fa

Please sign in to comment.