uniform
This commit is contained in:
@@ -109,6 +109,12 @@ func (s *server) applyAndRespond(w http.ResponseWriter, r *http.Request, id orde
|
||||
s.logger.Error("idempotency record failed", "key", idemKey, "orderId", id.String(), "err", err)
|
||||
}
|
||||
}
|
||||
// Invalidate the stats cache asynchronously so the dashboard picks up
|
||||
// the new state without blocking the HTTP response. Nil-safe: tests and
|
||||
// minimal configs can omit the cache.
|
||||
if s.statsCache != nil {
|
||||
go s.statsCache.Rebuild()
|
||||
}
|
||||
grain, err := s.applier.Get(r.Context(), uint64(id))
|
||||
if err != nil {
|
||||
writeErr(w, http.StatusInternalServerError, err)
|
||||
|
||||
Reference in New Issue
Block a user