Skip to content

Commit

Permalink
v2 clean up subscriptions: cleanup in memory store (redhat-cne#78)
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Ding <[email protected]>
  • Loading branch information
jzding committed Aug 29, 2024
1 parent dba0ac0 commit bbadde1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions v2/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,11 @@ func (s *Server) deleteAllSubscriptions(w http.ResponseWriter, _ *http.Request)
respondWithError(w, err.Error())
return
}
// empty the store in memory
if err = s.pubSubAPI.DeleteAllSubscriptions(); err != nil {
respondWithError(w, err.Error())
return
}

respondWithStatusCode(w, http.StatusNoContent, "")
}
Expand Down

0 comments on commit bbadde1

Please sign in to comment.