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

chore: refactor sender api #1187

Merged
merged 10 commits into from
Aug 10, 2024
Merged

chore: refactor sender api #1187

merged 10 commits into from
Aug 10, 2024

Conversation

kaichaosun
Copy link
Contributor

@kaichaosun kaichaosun commented Aug 8, 2024

Description

Fix #1181

API usage in status-go: status-im/status-go#5676

Copy link
Member

@richard-ramos richard-ramos left a comment

Choose a reason for hiding this comment

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

LGTM

waku/v2/api/publish/rate_limiting.go Show resolved Hide resolved
waku/v2/api/publish/message_sender.go Outdated Show resolved Hide resolved
waku/v2/api/publish/message_sender.go Show resolved Hide resolved
waku/v2/api/publish/message_sender.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@chaitanyaprem chaitanyaprem left a comment

Choose a reason for hiding this comment

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

LGTM

waku/v2/api/publish/message_sender.go Outdated Show resolved Hide resolved
@kaichaosun
Copy link
Contributor Author

kaichaosun commented Aug 9, 2024

Fixed the comments, also add an interface ISentCheck for MessageSentCheck, we can probably add interfaces to relay and lightpush for easily mock tests in future. How do you think about it? @richard-ramos @chaitanyaprem

@kaichaosun kaichaosun merged commit 92d62a7 into master Aug 10, 2024
11 of 12 checks passed
@kaichaosun kaichaosun deleted the send-wrapper branch August 10, 2024 12:05
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.

feat: send API for abstracting lightpush and relay publish with sent status check logic
3 participants