Merge pull request #87 from roman-khimov/lint

Linter fixes
remotes/KirillovDenis/bugfix/681-fix_acl_parsing
Angira Kekteeva 2021-06-16 23:01:29 +03:00 committed by GitHub
commit 0814bf3d01
3 changed files with 2 additions and 4 deletions

View File

@ -44,6 +44,7 @@ type (
prs int
)
// ErrNoAuthorizationHeader is returned for unauthenticated requests.
var ErrNoAuthorizationHeader = errors.New("no authorization header")
func (p prs) Read(_ []byte) (n int, err error) {

View File

@ -28,9 +28,6 @@ const (
defaultConnectTimeout = 30 * time.Second
defaultShutdownTimeout = 15 * time.Second
defaultKeepaliveTime = 10 * time.Second
defaultKeepaliveTimeout = 10 * time.Second
defaultMaxClientsCount = 100
defaultMaxClientsDeadline = time.Second * 30
)

View File

@ -114,7 +114,7 @@ func (c *cred) getAccessBox(ctx context.Context, address *object.Address) (*acce
func (c *cred) Put(ctx context.Context, cid *cid.ID, issuer *owner.ID, box *accessbox.AccessBox, keys ...hcs.PublicKey) (*object.Address, error) {
var (
err error
err error
created = strconv.FormatInt(time.Now().Unix(), 10)
)