Fail an approval request fast when no subscriber received the prompt

This commit is contained in:
Viktor Liu
2026-08-29 16:00:36 +02:00
parent e104cef490
commit d0d8813dcb
5 changed files with 45 additions and 6 deletions
@@ -64,7 +64,7 @@ func (r *fakeRecorder) PublishEvent(
message string,
_ string,
metadata map[string]string,
) {
) bool {
r.mu.Lock()
defer r.mu.Unlock()
r.events = append(r.events, event{
@@ -74,6 +74,7 @@ func (r *fakeRecorder) PublishEvent(
message: message,
meta: metadata,
})
return true
}
func (r *fakeRecorder) snapshot() []event {