Skip to content

Remove unnecessary serialize/deserialize while calling import_header#331

Merged
majecty merged 2 commits intoCodeChain-io:masterfrom
majecty:f/import-header
Apr 16, 2020
Merged

Remove unnecessary serialize/deserialize while calling import_header#331
majecty merged 2 commits intoCodeChain-io:masterfrom
majecty:f/import-header

Conversation

@majecty
Copy link

@majecty majecty commented Apr 16, 2020

@sgkim126 I changed import_trusted_header to receive Header instead of &Header. When importing a header, I feel moving a header is more natural than borrowing the header. However, I'm not confident. Do you have any idea?

@majecty majecty added the refactoring Behavior does not change. Make code simple label Apr 16, 2020
@majecty majecty requested a review from sgkim126 April 16, 2020 07:36
@sgkim126
Copy link
Contributor

@majecty I think it's good to move the value if there is no overhead.

@majecty majecty merged commit 7da95ca into CodeChain-io:master Apr 16, 2020
@majecty
Copy link
Author

majecty commented Apr 16, 2020

Since the failed tests are "discovery5 nodes" and "connect 100 nodes", I merged this PR.

@majecty majecty deleted the f/import-header branch April 16, 2020 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Behavior does not change. Make code simple

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants