Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
instead of returning and copying, pass pointee to be updated downstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Dieterbe committed Jul 6, 2019
1 parent 54d5d3e commit 230a2f0
Show file tree
Hide file tree
Showing 6 changed files with 120 additions and 119 deletions.
3 changes: 2 additions & 1 deletion api/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@ func (s *Server) indexList(ctx *middleware.Context, req models.IndexList) {
}

func (s *Server) getData(ctx *middleware.Context, request models.GetData) {
series, ss, err := s.getTargetsLocal(ctx.Req.Context(), request.Requests)
var ss models.StorageStats
series, err := s.getTargetsLocal(ctx.Req.Context(), &ss, request.Requests)
if err != nil {
// the only errors returned are from us catching panics, so we should treat them
// all as internalServerErrors
Expand Down
Loading

0 comments on commit 230a2f0

Please sign in to comment.