Merge pull request #87 from roman-khimov/lint

Linter fixes
This commit is contained in:
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)
)