Bound notification delivery and expansion
This commit is contained in:
committed by
Brandon McGinty
parent
4497d41077
commit
d64e5125dd
@@ -38,7 +38,12 @@ func esc(str string) string {
|
||||
}
|
||||
|
||||
func (b *Barnard) Notify(event string, who string, what string) {
|
||||
b.notifyChannel <- []string{event, who, what}
|
||||
// Notifications are best-effort: a slow external command must not block a
|
||||
// UI or network callback. New events are dropped once the bounded queue is full.
|
||||
select {
|
||||
case b.notifyChannel <- []string{event, who, what}:
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
func (b *Barnard) SetSelectedUser(user *gumble.User) {
|
||||
|
||||
Reference in New Issue
Block a user