diff options
Diffstat (limited to 'pkg/ui/views/game_moves.go')
-rw-r--r-- | pkg/ui/views/game_moves.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/ui/views/game_moves.go b/pkg/ui/views/game_moves.go index eeee9e1..daf24e6 100644 --- a/pkg/ui/views/game_moves.go +++ b/pkg/ui/views/game_moves.go @@ -3,7 +3,7 @@ package views import ( "fmt" - "github.com/boozec/rahanna/internal/network" + "github.com/boozec/rahanna/pkg/p2p" "github.com/charmbracelet/bubbles/list" tea "github.com/charmbracelet/bubbletea" "github.com/notnil/chess" @@ -24,7 +24,7 @@ func (i item) Description() string { return "" } func (i item) FilterValue() string { return i.title } func (m *GameModel) getMoves() tea.Cmd { - m.network.AddReceiveFunction(func(msg network.Message) { + m.network.AddReceiveFunction(func(msg p2p.Message) { payload := string(msg.Payload) m.incomingMoves <- payload }) |