Skip to content

Commit

Permalink
minor keys
Browse files Browse the repository at this point in the history
  • Loading branch information
likesToEatFish committed Jul 18, 2024
1 parent d2ab52f commit 47ed2f1
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 15 deletions.
4 changes: 2 additions & 2 deletions x/meshsecurity/keeper/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ func (k Keeper) SendPackets(ctx sdk.Context) {
ctx,
k.scopedKeeper,
k.channelKeeper,
channelID, // source channel id
ctypes.ConsumerPortID, // source port id
channelID, // source channel id
types.ConsumerPortID, // source port id
s.GetBytes(),
k.GetParams(ctx).GetTimeoutPeriod(),
)
Expand Down
7 changes: 2 additions & 5 deletions x/meshsecurity/types/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@ import (

const (
// ModuleName defines the module name.
ModuleName = "meshsecurityconsummer"

// ConsumerPortID is the default port id the consumer module binds to
ConsumerPortID = "consumer"
ModuleName = "meshsecurity-consummer"

// StoreKey defines the primary module store key.
StoreKey = ModuleName

// MemStoreKey defines the in-memory store key
MemStoreKey = "memory:meshsecurity"
MemStoreKey = "memory:meshsecurity-consummer"

// RouterKey is the message route
RouterKey = ModuleName
Expand Down
12 changes: 8 additions & 4 deletions x/provider/types/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ import (
)

const (
ModuleName = "meshsecurityprovider"
RouterKey = ModuleName
StoreKey = ModuleName
MemStoreKey = "memory:meshsecurityprovider"
// ModuleName defines the module name.
ModuleName = "meshsecurity-provider"
// RouterKey is the message route
RouterKey = ModuleName
// StoreKey defines the primary module store key.
StoreKey = ModuleName
// MemStoreKey defines the in-memory store key
MemStoreKey = "memory:meshsecurity-provider"
)

var (
Expand Down
13 changes: 9 additions & 4 deletions x/types/key.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
package types

const (
ModuleName = "MeshSecurity"
ProviderPortID = "provider"
ConsumerPortID = "consumer"
Version = "1"
ModuleName = "MeshSecurity"

// ProviderPortID is the default port id the provider module binds to
ProviderPortID = "ms-provider"

// ConsumerPortID is the default port id the consumer module binds to
ConsumerPortID = "ms-consumer"

Version = "1"
)

0 comments on commit 47ed2f1

Please sign in to comment.