Skip to content

Commit

Permalink
chore: remove alias types for sessionId and block height
Browse files Browse the repository at this point in the history
  • Loading branch information
red-0ne committed Oct 28, 2023
1 parent 516184c commit f770d5a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pkg/relayer/session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ import (

var _ RelayerSessionsManager = (*relayerSessionsManager)(nil)

type (
sessionId = string
blockHeight = int64
sessionsTreesMap = map[blockHeight]map[sessionId]SessionTree
)
type sessionsTreesMap = map[int64]map[string]SessionTree

// relayerSessionsManager is an implementation of the RelayerSessions interface.
type relayerSessionsManager struct {
Expand Down Expand Up @@ -73,7 +69,7 @@ func (rs *relayerSessionsManager) EnsureSessionTree(session *sessiontypes.Sessio

// If there is no map for sessions at the sessionEndHeight, create one.
if !ok {
sessionsTrees = make(map[sessionId]SessionTree)
sessionsTrees = make(map[string]SessionTree)
rs.sessionsTrees[sessionEndHeight] = sessionsTrees
}

Expand Down

0 comments on commit f770d5a

Please sign in to comment.