mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
update Notifiability interface
This commit is contained in:
parent
3d69330e67
commit
897d882c35
|
@ -25,6 +25,12 @@ func (m *Notifiability) AddNotifier(notifier Notifier) {
|
||||||
|
|
||||||
func (m *Notifiability) Notify(msg string, args ...interface{}) {
|
func (m *Notifiability) Notify(msg string, args ...interface{}) {
|
||||||
for _, n := range m.notifiers {
|
for _, n := range m.notifiers {
|
||||||
n.NotifyTo("", msg, args...)
|
n.Notify(msg, args...)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Notifiability) NotifyTo(channel, msg string, args ...interface{}) {
|
||||||
|
for _, n := range m.notifiers {
|
||||||
|
n.NotifyTo(channel, msg, args...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user