Use string for the timestamp, proto uses this under the hood anyway

https://github.com/grpc-ecosystem/grpc-gateway/issues/438
This commit is contained in:
Marc Di Luzio 2020-07-09 19:38:23 +01:00
parent b748846c55
commit 30ca488890
4 changed files with 6 additions and 7 deletions

View file

@ -94,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: log.Time.Unix(),
Time: fmt.Sprintf("%d", log.Time.Unix()), // proto uses strings under the hood for 64bit ints anyway
})
}