[#638] Update to Go 1.16
Changes: * replace `iotuil` elements with the ones from `os` package; * replace `os.Filemode` with `fs.FileMode`; * use `signal.NotifyContext` instead of `NewGracefulContext` (removed). Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
61f48a2736
commit
56d4410913
30 changed files with 74 additions and 105 deletions
|
@ -2,7 +2,7 @@ package blobstor
|
|||
|
||||
import (
|
||||
"encoding/hex"
|
||||
"os"
|
||||
"io/fs"
|
||||
"path"
|
||||
|
||||
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/blobovnicza"
|
||||
|
@ -145,7 +145,7 @@ func WithRootPath(rootDir string) Option {
|
|||
|
||||
// WithRootPerm returns option to set permission
|
||||
// bits of the fs tree.
|
||||
func WithRootPerm(perm os.FileMode) Option {
|
||||
func WithRootPerm(perm fs.FileMode) Option {
|
||||
return func(c *cfg) {
|
||||
c.fsTree.Permissions = perm
|
||||
c.blzOpts = append(c.blzOpts, blobovnicza.WithPermissions(perm))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue