nspcc-dev/neofs-node
node: Refactor using `StorageEngine` in `Object` service
Aberta
#1.834 aberto em 4 de out. de 2022
I4S2U4enhancementgood first issueneofs-storage
Métricas do repositório
- Stars
- (36 estrelas)
- Métricas de merge de PR
- (Métricas PR pendentes)
Description
Object service server of storage node uses engine.StorageEngine type directly almost everywhere. Such code architecture doesn't allow to tune local storage behavior. For example, in #1798 there was a need to block all local operations, but on Object server only: Control service should still call the engine.
I propose to refactor engine's usage as it done it ObjectService.Put server
Each component should precisely document expected behavior of local object storage by itself via locally defined interface. As a bonus, instance can be easily mocked for testing.