forked from TrueCloudLab/frostfs-node
[#1910] .golangci.yml: Add godot
linker
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
347912ea0b
commit
d772e35aba
54 changed files with 90 additions and 107 deletions
|
@ -364,7 +364,7 @@ type shared struct {
|
|||
}
|
||||
|
||||
// dynamicConfiguration stores parameters of the
|
||||
// components that supports runtime reconfigurations
|
||||
// components that supports runtime reconfigurations.
|
||||
type dynamicConfiguration struct {
|
||||
logger *logger.Prm
|
||||
}
|
||||
|
|
|
@ -189,7 +189,7 @@ func safeMul(size float64, multiplier uint64) uint64 {
|
|||
return lo
|
||||
}
|
||||
|
||||
// parseSizeInBytes converts strings like 1GB or 12 mb into an unsigned integer number of bytes
|
||||
// parseSizeInBytes converts strings like 1GB or 12 mb into an unsigned integer number of bytes.
|
||||
func parseSizeInBytes(sizeStr string) uint64 {
|
||||
sizeStr = strings.TrimSpace(sizeStr)
|
||||
lastChar := len(sizeStr) - 1
|
||||
|
|
|
@ -60,8 +60,7 @@ func New(_ Prm, opts ...Option) *Config {
|
|||
}
|
||||
}
|
||||
|
||||
// Reload reads configuration path if any was provided
|
||||
// to the New. Returns any
|
||||
// Reload reads configuration path if it was provided to New.
|
||||
func (x *Config) Reload() error {
|
||||
if x.opts.path != "" {
|
||||
err := x.v.ReadInConfig()
|
||||
|
|
|
@ -10,7 +10,6 @@ import (
|
|||
// which provides access to Blobovnicza configurations.
|
||||
type Config config.Config
|
||||
|
||||
// config defaults
|
||||
const (
|
||||
// SizeDefault is a default limit of estimates of Blobovnicza size.
|
||||
SizeDefault = 1 << 30
|
||||
|
|
|
@ -11,7 +11,6 @@ import (
|
|||
// which provides access to boltdb specific parameters.
|
||||
type Config config.Config
|
||||
|
||||
// config defaults
|
||||
const (
|
||||
// PermDefault is a default permission bits for metabase file.
|
||||
PermDefault = 0660
|
||||
|
|
|
@ -10,7 +10,6 @@ import (
|
|||
// which provides access to Shard's GC configurations.
|
||||
type Config config.Config
|
||||
|
||||
// config defaults
|
||||
const (
|
||||
// RemoverBatchSizeDefault is a default batch size for Shard GC's remover.
|
||||
RemoverBatchSizeDefault = 100
|
||||
|
|
|
@ -9,7 +9,6 @@ import (
|
|||
// which provides access to WriteCache configurations.
|
||||
type Config config.Config
|
||||
|
||||
// config defaults
|
||||
const (
|
||||
// SmallSizeDefault is a default size of small objects.
|
||||
SmallSizeDefault = 32 << 10
|
||||
|
|
|
@ -4,7 +4,6 @@ import (
|
|||
"github.com/nspcc-dev/neofs-node/cmd/neofs-node/config"
|
||||
)
|
||||
|
||||
// config defaults
|
||||
const (
|
||||
// LevelDefault is a default logger level.
|
||||
LevelDefault = "info"
|
||||
|
|
|
@ -215,7 +215,7 @@ func initContainerService(c *cfg) {
|
|||
}
|
||||
}
|
||||
|
||||
// addContainerNotificationHandler adds handler that will be executed synchronously
|
||||
// addContainerNotificationHandler adds handler that will be executed synchronously.
|
||||
func addContainerNotificationHandler(c *cfg, sTyp string, h event.Handler) {
|
||||
typ := event.TypeFromString(sTyp)
|
||||
|
||||
|
@ -226,7 +226,7 @@ func addContainerNotificationHandler(c *cfg, sTyp string, h event.Handler) {
|
|||
c.cfgContainer.subscribers[typ] = append(c.cfgContainer.subscribers[typ], h)
|
||||
}
|
||||
|
||||
// addContainerAsyncNotificationHandler adds handler that will be executed asynchronously via container workerPool
|
||||
// addContainerAsyncNotificationHandler adds handler that will be executed asynchronously via container workerPool.
|
||||
func addContainerAsyncNotificationHandler(c *cfg, sTyp string, h event.Handler) {
|
||||
addContainerNotificationHandler(
|
||||
c,
|
||||
|
|
|
@ -16,7 +16,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
// SuccessReturnCode returns when application closed without panic
|
||||
// SuccessReturnCode returns when application closed without panic.
|
||||
SuccessReturnCode = 0
|
||||
)
|
||||
|
||||
|
|
|
@ -315,12 +315,12 @@ func (c *cfg) netmapLocalNodeState(epoch uint64) (*netmapSDK.NodeInfo, error) {
|
|||
return nil, nil
|
||||
}
|
||||
|
||||
// addNewEpochNotificationHandler adds handler that will be executed synchronously
|
||||
// addNewEpochNotificationHandler adds handler that will be executed synchronously.
|
||||
func addNewEpochNotificationHandler(c *cfg, h event.Handler) {
|
||||
addNetmapNotificationHandler(c, newEpochNotification, h)
|
||||
}
|
||||
|
||||
// addNewEpochAsyncNotificationHandler adds handler that will be executed asynchronously via netmap workerPool
|
||||
// addNewEpochAsyncNotificationHandler adds handler that will be executed asynchronously via netmap workerPool.
|
||||
func addNewEpochAsyncNotificationHandler(c *cfg, h event.Handler) {
|
||||
addNetmapNotificationHandler(
|
||||
c,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue