frostfs-node/pkg/services/netmap
Leonard Lyubich 93742d37b7 [#1793] node/netmap: Change interface of the latest network map reader
Replace `ProcessCurrentNetMap` method of `NodeState` interface with
`ReadCurrentNetMap` one with two changes:
 * Replace network map type from NeoFS SDK package with the
   protocol-generated message. This replaces all the business logic to
   the application layer.
 * Support error return. This allows to cover problem node states.

Return an error from `NodeState.ReadCurrentNetMap` method implemeted
through `atomic.Value` if `Store` method has not been called yet.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2022-09-27 09:03:17 +03:00
..
executor.go [#1793] node/netmap: Change interface of the latest network map reader 2022-09-27 09:03:17 +03:00
response.go [#1793] node: Serve `NetmapService.NetmapSnapshot` RPC 2022-09-27 09:03:17 +03:00
server.go [#1793] node: Serve `NetmapService.NetmapSnapshot` RPC 2022-09-27 09:03:17 +03:00
sign.go [#1793] node: Serve `NetmapService.NetmapSnapshot` RPC 2022-09-27 09:03:17 +03:00