Fix: fuck udp

This commit is contained in:
2025-10-16 08:09:19 +08:00
committed by ytshih
parent 0dea850cfa
commit 8fb294cd5d
7 changed files with 61 additions and 64 deletions

View File

@@ -86,9 +86,8 @@ func (m *WordleClientModel) getState() tea.Cmd {
func (m *WordleClientModel) postGuess(guess string) tea.Cmd {
return func() tea.Msg {
b, err := msgpack.Marshal(wordle.OperationGuess{
Username: m.client.UserInfo.Username,
Guess: guess,
b, err := msgpack.Marshal(wordle.PostGuessInput{
Guess: guess,
})
if err != nil {
m.err = fmt.Errorf("failed to post guess, %w", err)