Description
What's the issue?
We have lots of duplicated code between mutations/deletions/expirations, we should reduce this if possible.
What's the fix?
1) We could add a 'DocumentType'
2) We could use the 'DocumentType' to transfer the mutation/deletion/expiration callbacks into a 'Document' callback
3) We could reduce boilerplate around incrementing stats i.e. this would allow us to have a 'DocumentReceived' function instead of one for each type.
Attachments
Issue Links
- relates to
-
MB-37023 [CBM] Tidy up/fix the data range logic
- Closed