Implicitly pass and access config parameters through a ReaderT #68

Open
opened 2020-09-04 14:52:18 +02:00 by schmittlauch · 0 comments
Owner

Currently, the FediChordConf always needs to be read through the RealNode TVar whenever any config parameter is required.
This does not only cause unnecessary concurrent access, but also makes the code more messy and complex than necessary.

An idea would be to pass the config parameters as read-only values inside a monad, e.g. the Reader monad/ Reader transformer.

Currently, the FediChordConf always needs to be read through the RealNode TVar whenever any config parameter is required. This does not only cause unnecessary concurrent access, but also makes the code more messy and complex than necessary. An idea would be to pass the config parameters as read-only values inside a monad, e.g. the Reader monad/ Reader transformer.
schmittlauch added the
refactoring
label 2020-09-04 14:52:18 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: schmittlauch/Hash2Pub#68
No description provided.