Skip to content

Commit

Permalink
chore: remove unecessary KeyChannelStorePrefix
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitrisJim committed Oct 22, 2024
1 parent cc51d29 commit 8c232ce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion modules/core/04-channel/v2/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (Keeper) Logger(ctx context.Context) log.Logger {
}

func (k Keeper) ChannelStore(ctx context.Context, channelID string) storetypes.KVStore {
channelPrefix := []byte(fmt.Sprintf("%s/%s/", host.KeyChannelStorePrefix, channelID))
channelPrefix := []byte(fmt.Sprintf("%s/%s/", host.KeyChannelPrefix, channelID))
return prefix.NewStore(runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)), channelPrefix)
}

Expand Down
2 changes: 0 additions & 2 deletions modules/core/24-host/channel_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package host

import "fmt"

var KeyChannelStorePrefix = []byte("channels")

const (
KeyChannelEndPrefix = "channelEnds"
KeyChannelPrefix = "channels"
Expand Down

0 comments on commit 8c232ce

Please sign in to comment.