-
-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEATURE: add livenote support #1804
Conversation
Welcome back! @c9s, This pull request may get 210 BBG. |
…pkg/strategy/example
Re-estimated karma: this pull request may get 359 BBG |
Re-estimated karma: this pull request may get 550 BBG |
Re-estimated karma: this pull request may get 655 BBG |
|
||
for _, poster := range Notification.liveNotePosters { | ||
if err := poster.PostLiveNote(obj); err != nil { | ||
logrus.WithError(err).Errorf("unable to post live note: %+v", obj) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will it cause too many error messages?
@@ -66,7 +71,50 @@ func (n *Notifier) worker() { | |||
} | |||
} | |||
|
|||
func (n *Notifier) PostLiveNote(obj livenote.Object) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about making ctx as one of the input parameters?
// PostLiveNote posts a live note to slack or other services | ||
// The MessageID will be set after the message is posted if it's not set. | ||
func PostLiveNote(obj livenote.Object) { | ||
if len(Notification.liveNotePosters) == 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could Notification be nil?
Hi @c9s, Well done! 690 BBG has been sent to your polygon wallet. Please check the following tx: https://polygonscan.com/tx/0x95d6be829c5edd202cab9fc5e017712ff154f8de35068f80dd2a68ea4c105467 Thank you for your contribution! |
No description provided.