Use a unix timestamp rather than a timestamppb

This commit is contained in:
Marc Di Luzio 2020-07-09 19:29:04 +01:00
parent 55c85d2a22
commit b748846c55
4 changed files with 134 additions and 143 deletions

View file

@ -8,7 +8,6 @@ import (
"github.com/mdiluz/rove/pkg/game"
"github.com/mdiluz/rove/pkg/rove"
"github.com/mdiluz/rove/pkg/version"
"google.golang.org/protobuf/types/known/timestamppb"
)
// ServerStatus returns the status of the current server to a gRPC request
@ -95,7 +94,7 @@ func (s *Server) Status(ctx context.Context, req *rove.StatusRequest) (response
for _, log := range rover.Logs {
logs = append(logs, &rove.Log{
Text: log.Text,
Time: timestamppb.New(log.Time),
Time: log.Time.Unix(),
})
}