From 544977d54effa7804386aa40f30a87f5e2365efa Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Thu, 17 Apr 2025 22:28:08 +0200 Subject: Move internal/network package to pkg/p2p --- pkg/ui/views/game_moves.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/ui/views/game_moves.go') 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 }) -- cgit v1.2.3-18-g5258