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

Commit 225debb

Browse files
committed
instead of returning and copying, pass pointee to be updated downstream
1 parent 54d5d3e commit 225debb

File tree

5 files changed

+119
-116
lines changed

5 files changed

+119
-116
lines changed

api/cluster.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,8 @@ func (s *Server) indexList(ctx *middleware.Context, req models.IndexList) {
340340
}
341341

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

0 commit comments

Comments
 (0)