Skip to content

Commit

Permalink
peapod: deprecate Peapod
Browse files Browse the repository at this point in the history
Also suppress linter in `neofs-lens`.

Refs #2924.

Signed-off-by: Andrey Butusov <andrey@nspcc.io>
  • Loading branch information
End-rey committed Nov 14, 2024
1 parent d1974b3 commit 75830fe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion cmd/neofs-lens/internal/peapod/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ func init() {
}

// open and returns read-only peapod.Peapod located in vPath.
func openPeapod() (*peapod.Peapod, error) {
func openPeapod() (
// nolint:staticcheck
*peapod.Peapod,
error,
) {
// interval prm doesn't matter for read-only usage, but must be positive
ppd := peapod.New(vPath, 0400, 1)
var compressCfg compression.Config
Expand Down
3 changes: 2 additions & 1 deletion cmd/neofs-lens/internal/storage/sanity.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ func init() {
type storageShard struct {
m *meta.DB
fsT *fstree.FSTree
p *peapod.Peapod
// nolint:staticcheck
p *peapod.Peapod
}

func sanityCheck(cmd *cobra.Command, _ []string) error {
Expand Down
2 changes: 2 additions & 0 deletions pkg/local_object_storage/blobstor/peapod/peapod.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ type batch struct {
// Peapod provides storage for relatively small NeoFS binary object (peas).
// Peapod is a single low-level key/value database optimized to work with big
// number of stored units.
//
// Deprecated: Use fstree.FSTree instead.
type Peapod struct {
path string
perm fs.FileMode
Expand Down

0 comments on commit 75830fe

Please sign in to comment.