Skip to content
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

Merged
merged 6 commits into from
Nov 5, 2024
Merged

FEATURE: add livenote support #1804

merged 6 commits into from
Nov 5, 2024

Conversation

c9s
Copy link
Owner

@c9s c9s commented Nov 5, 2024

No description provided.

@bbgokarma-bot
Copy link

Welcome back! @c9s, This pull request may get 210 BBG.

@bbgokarma-bot
Copy link

Re-estimated karma: this pull request may get 359 BBG

@bbgokarma-bot
Copy link

Re-estimated karma: this pull request may get 550 BBG

@bbgokarma-bot
Copy link

Re-estimated karma: this pull request may get 655 BBG

@c9s c9s changed the title WIP: IMPROVE: [xalign] add more improvements IMPROVE: add livenote support Nov 5, 2024
@c9s c9s changed the title IMPROVE: add livenote support FEATURE: add livenote support Nov 5, 2024
@c9s c9s requested review from kbearXD and gx578007 November 5, 2024 09:35

for _, poster := range Notification.liveNotePosters {
if err := poster.PostLiveNote(obj); err != nil {
logrus.WithError(err).Errorf("unable to post live note: %+v", obj)
Copy link
Collaborator

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 {
Copy link
Collaborator

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 {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could Notification be nil?

@c9s c9s merged commit 83c181c into main Nov 5, 2024
3 checks passed
@c9s c9s deleted the c9s/xalign/improvements branch November 5, 2024 10:54
@bbgokarma-bot
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants