aeron-rs icon indicating copy to clipboard operation
aeron-rs copied to clipboard

Refactor some code

Open l4l opened this issue 4 years ago • 0 comments

No semantic should be made there, if found it's an error.

Some other hints to improve the code:

  • split up the god-types (i.e. the ones with >5 fields), in particular testing would be much easier;
  • there's a lot of duplicated code, making it polymorphic might significantly reduce codebase size;
  • use derive_builder for builders;
  • use either anyhow with thiserror, or even better use snafu instead for error handling.

l4l avatar Apr 23 '21 08:04 l4l