-
Notifications
You must be signed in to change notification settings - Fork 53
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: move protobuf module from utils to common #1390
Conversation
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.
Great! Worth adding a line to the Coding Guide re "use common/protobuf
and don't import libp2p minprotobuf directly"?
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.
Using @jm-clius guideline "use common/protobuf and don't import libp2p minprotobuf directly"?, perhaps we are missing updating waku_peer_storage.nim
as well?
We can leave that for another PR, but do we also want to remove libp2p/protobuf/minprotobuf
from the tests?
Note that I have only touched the protocol modules. So... I am not 100% sure if we should do it. I have not analyzed the impact of moving everything to import this common module. I had in mind to do that when we decided the
I am unfamiliar with
Same thing here. I don't know the implication of removing the types. And I am pretty sure that, in some cases, the analysis will lead us to a deeper refactoring of the test suite. I want to avoid this extra work to be part of this PR. |
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!
The check failure can be ignored. It is not related to the changes. The offending test case is already tracked in #1357. |
Following previous work with
sqlite.nim
andenvvar_serialziation.nim
modules, this PR moves the protobuf module to thecommon
module. This module should, in the future, act as a "facade" for the protobuf codec APIs.protobuf.nim
undercommon
module