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

Make FileClient generic over codec #12475

Closed
Tracked by #7649
emhane opened this issue Nov 12, 2024 · 2 comments
Closed
Tracked by #7649

Make FileClient generic over codec #12475

emhane opened this issue Nov 12, 2024 · 2 comments
Assignees
Labels
A-cli Related to the reth CLI C-debt A clean up/refactor of existing code D-good-first-issue Nice and easy! A great choice to get started

Comments

@emhane
Copy link
Member

emhane commented Nov 12, 2024

Describe the feature

Add field codec: T to FileClient, and make generic over codec. Instead of using the hardcoded type BlockFileCodec here, get the codec by self.codec

let mut stream = FramedRead::with_capacity(reader, BlockFileCodec, num_bytes as usize);

Additional context

No response

@emhane emhane added A-cli Related to the reth CLI C-debt A clean up/refactor of existing code D-good-first-issue Nice and easy! A great choice to get started labels Nov 12, 2024
@TropicalDog17
Copy link
Contributor

Can I work on this @emhane ?

@emhane
Copy link
Member Author

emhane commented Nov 27, 2024

closed by #12681

@emhane emhane closed this as completed Nov 27, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in Reth Tracker Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cli Related to the reth CLI C-debt A clean up/refactor of existing code D-good-first-issue Nice and easy! A great choice to get started
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants