allow gob spectators to send back Instruction maps
Esse commit está contido em:
pai
ab3586e5aa
commit
39b8a9e5d7
|
@ -199,7 +199,7 @@ func NewSpectator(id string, ws *websocket.Conn, bw *bandwidth.Bandwidth, encodi
|
|||
// from spectators.
|
||||
func (s *Spectator) Recv() {
|
||||
for {
|
||||
var msgs interface{}
|
||||
var msgs map[string]Instruction
|
||||
err := s.dec.Decode(&msgs)
|
||||
if err != nil {
|
||||
log.Printf("%s: %s", s.Id, err)
|
||||
|
|
Carregando…
Referência em uma nova issue