-
Notifications
You must be signed in to change notification settings - Fork 261
refactor: use protected topics persistence interface #6962
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
base: develop
Are you sure you want to change the base?
Conversation
Jenkins BuildsClick to see older builds (6)
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #6962 +/- ##
===========================================
+ Coverage 59.52% 59.83% +0.31%
===========================================
Files 810 809 -1
Lines 119476 119458 -18
===========================================
+ Hits 71121 71481 +360
+ Misses 41018 40611 -407
- Partials 7337 7366 +29
Flags with carried forward coverage won't be shown. Click here to find out more.
|
ff630b7
to
9348690
Compare
9348690
to
476d6a2
Compare
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.
LGTM
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.
I think this shouldn't be in persistence
subpackage, but in waku
package directly 🤔
To be used like waku.ProtectedTopic
.
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.
Perhaps generate a stub with gomock
?
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.
I don't think a mock has a proper use case here. I don't want to verify behavior, but rather provide functional persistence for tests. It isn't a stub either. I'll rename it to persistence_in_memory.go
.
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.
@osmaczko indeed. Don't bother, it's not that important
iterates: #6792