diff options
author | Santo Cariotti <santo@dcariotti.me> | 2025-04-17 22:28:08 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2025-04-17 22:28:08 +0200 |
commit | 544977d54effa7804386aa40f30a87f5e2365efa (patch) | |
tree | aa6896cfa3db9c2e61b219f6995e25da64255f30 /pkg/ui/views/game_moves.go | |
parent | 8255fbdd7d9d595e71545b7c6909114024527a34 (diff) |
Move internal/network package to pkg/p2p
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 }) |