forked from TrueCloudLab/frostfs-node
[#291] Remove some unused code from repository
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
a51211eda7
commit
9a86fff7e0
23 changed files with 14 additions and 399 deletions
|
@ -1,8 +1,6 @@
|
|||
package netmap
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/nspcc-dev/neofs-api-go/pkg/netmap"
|
||||
)
|
||||
|
||||
|
@ -21,9 +19,6 @@ type Source interface {
|
|||
GetNetMap(diff uint64) (*netmap.Netmap, error)
|
||||
}
|
||||
|
||||
// ErrNotFound is the error returned when network map was not found in storage.
|
||||
var ErrNotFound = errors.New("network map not found")
|
||||
|
||||
// GetLatestNetworkMap requests and returns latest network map from storage.
|
||||
func GetLatestNetworkMap(src Source) (*netmap.Netmap, error) {
|
||||
return src.GetNetMap(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue