migalabs / armiarma

Armiarma is a Libp2p open-network crawler with a current focus on Ethereum's CL network
https://monitoreth.io
MIT License
36 stars 13 forks source link

Clean up the crawler tool from the Base module #33

Closed cortze closed 2 years ago

cortze commented 2 years ago

The idea of the PR is to remove any kind of base.Ctx and base.Logger from the code. Each of the services will have its own ctx derivated from the mainCtx, as a function to cancel de child ctxs. To remove the base.logger we will use the global setters offered by logrus, as recommended by @alrevuelta in #30.

The final goal of the PR is to make the tool more readable, remove redundant code, and speed up the development of future features.