Skip to content

Commit

Permalink
fix datarace
Browse files Browse the repository at this point in the history
Signed-off-by: husharp <ihusharp@gmail.com>
  • Loading branch information
HuSharp committed Jul 17, 2024
1 parent cbba49a commit 96bb8b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/apiutil/serverapi/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func (h *redirector) waitForLeader(r *http.Request) (leader *pdpb.Member) {
}
case <-r.Context().Done():
return
case <-h.s.LoopContext().Done():
case <-h.s.Context().Done():
return
}
}
Expand Down

0 comments on commit 96bb8b0

Please sign in to comment.