Skip to content

Commit

Permalink
chore: revert exporting of deletePacketCommitment.
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitrisJim committed Nov 11, 2024
1 parent b176e45 commit e769eeb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/core/04-channel/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func (k *Keeper) SetPacketCommitment(ctx context.Context, portID, channelID stri
}
}

func (k *Keeper) DeletePacketCommitment(ctx context.Context, portID, channelID string, sequence uint64) {
func (k *Keeper) deletePacketCommitment(ctx context.Context, portID, channelID string, sequence uint64) {
store := k.storeService.OpenKVStore(ctx)
if err := store.Delete(host.PacketCommitmentKey(portID, channelID, sequence)); err != nil {
panic(err)
Expand Down
2 changes: 1 addition & 1 deletion modules/core/04-channel/keeper/packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ func (k *Keeper) AcknowledgePacket(
}

// Delete packet commitment, since the packet has been acknowledged, the commitement is no longer necessary
k.DeletePacketCommitment(ctx, packet.GetSourcePort(), packet.GetSourceChannel(), packet.GetSequence())
k.deletePacketCommitment(ctx, packet.GetSourcePort(), packet.GetSourceChannel(), packet.GetSequence())

// log that a packet has been acknowledged
k.Logger(ctx).Info(
Expand Down
2 changes: 1 addition & 1 deletion modules/core/04-channel/keeper/timeout.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (k *Keeper) timeoutExecuted(
channel types.Channel,
packet types.Packet,
) error {
k.DeletePacketCommitment(ctx, packet.GetSourcePort(), packet.GetSourceChannel(), packet.GetSequence())
k.deletePacketCommitment(ctx, packet.GetSourcePort(), packet.GetSourceChannel(), packet.GetSequence())

// if an upgrade is in progress, handling packet flushing and update channel state appropriately
if channel.State == types.FLUSHING && channel.Ordering == types.UNORDERED {
Expand Down

0 comments on commit e769eeb

Please sign in to comment.