mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-05 04:59:06 +02:00
Fail an approval request fast when no subscriber received the prompt
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user