Implicitly pass and access config parameters through a ReaderT #68
Labels
No labels
ActivityPub
advanced features
basic functionality
bug
DHT
evaluation
refactoring
security
test case
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: schmittlauch/Hash2Pub#68
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.