Skip to content

Commit

Permalink
fix json missing value on /status endpoint with retry buffer (refs ve…
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien PLENARD committed Aug 21, 2019
1 parent c2a3c93 commit e8f29ff
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions relay/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ func newRetryBuffer(size, batch int, max time.Duration, p poster) *retryBuffer {
}

type retryStats struct {
buffering int64
maxSize int64
size int64
Buffering int64 `json:"buffering"`
MaxSize int64 `json:"maxSize"`
Size int64 `json:"size"`
}

func (r *retryBuffer) getStats() stats {
stats := retryStats{}
stats.buffering = int64(r.buffering)
stats.maxSize = int64(r.list.maxSize)
stats.size = int64(r.list.size)
stats.Buffering = int64(r.buffering)
stats.MaxSize = int64(r.list.maxSize)
stats.Size = int64(r.list.size)
return stats
}

Expand Down

0 comments on commit e8f29ff

Please sign in to comment.