drop temp fail
parent
c760dac44b
commit
1e4198b291
|
|
@ -4,7 +4,6 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
|
||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
@ -130,5 +129,5 @@ func (ugs *UserGameServer) State(ctx context.Context) (UserGameState, error) {
|
||||||
gameState.Players[k] = v
|
gameState.Players[k] = v
|
||||||
}
|
}
|
||||||
|
|
||||||
return UserGameState(gameState), io.EOF
|
return UserGameState(gameState), nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"slices"
|
"slices"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
@ -149,7 +148,7 @@ func (ws WS) inProgressMsg(ctx context.Context, ugs *UserGameServer, gameState U
|
||||||
}
|
}
|
||||||
msg["items"] = items
|
msg["items"] = items
|
||||||
|
|
||||||
return nil, io.EOF
|
return msg, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
type inProgressMsgItem struct {
|
type inProgressMsgItem struct {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue