Skip to content

Conversation

@tock-ibm
Copy link
Contributor

@tock-ibm tock-ibm commented Jan 4, 2026

Refactor net utilities to a leaf package because they will create a cycle in the next commit.

Move three methods from node package to common/utils package.

"google.golang.org/grpc/peer"
)

func ExtractCertificateFromContext(ctx context.Context) *x509.Certificate { // TODO add unit test
Copy link
Contributor

Choose a reason for hiding this comment

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

was this TODO done?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, I just moved the code. We'll deal with this later...

Copy link
Contributor

Choose a reason for hiding this comment

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

look at TestExtractCertificateFromContext

Refactor net utilities to a leaf package because they will create a cycle in the next commit.

Signed-off-by: Yoav Tock <[email protected]>
@HagarMeir HagarMeir merged commit b78b180 into hyperledger:main Jan 5, 2026
7 checks passed
moradna pushed a commit to moradna/fabric-x-orderer that referenced this pull request Jan 7, 2026
Refactor net utilities to a leaf package because they will create a cycle in the next commit.

Signed-off-by: Yoav Tock <[email protected]>
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.

2 participants