Simplify by making command streams pointer lists like in proto
This commit is contained in:
parent
f78efd1223
commit
8667f55143
6 changed files with 143 additions and 193 deletions
|
@ -75,14 +75,7 @@ func (s *Server) Status(ctx context.Context, req *roveapi.StatusRequest) (respon
|
|||
inv = append(inv, byte(i.Type))
|
||||
}
|
||||
|
||||
in, qu := s.world.RoverCommands(resp)
|
||||
var incoming, queued []*roveapi.Command
|
||||
for i := range in {
|
||||
incoming = append(incoming, &in[i])
|
||||
}
|
||||
for i := range qu {
|
||||
queued = append(queued, &qu[i])
|
||||
}
|
||||
incoming, queued := s.world.RoverCommands(resp)
|
||||
var logs []*roveapi.Log
|
||||
for _, log := range rover.Logs {
|
||||
logs = append(logs, &roveapi.Log{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue