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:
parent
b748846c55
commit
30ca488890
4 changed files with 6 additions and 7 deletions
|
@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue