*: enable godot linter and fix all its warnings

It's important for NeoGo to have clean documentation. No functional changes.
This commit is contained in:
Roman Khimov 2021-05-12 23:17:03 +03:00
parent 3fdba9265f
commit 9d2712573f
60 changed files with 127 additions and 126 deletions

View file

@ -21,7 +21,7 @@ import (
const (
defaultDialTimeout = 4 * time.Second
defaultRequestTimeout = 4 * time.Second
// number of blocks after which cache is expired
// Number of blocks after which cache is expired.
cacheTimeout = 100
)
@ -52,14 +52,14 @@ type Options struct {
RequestTimeout time.Duration
}
// cache stores cache values for the RPC client methods
// cache stores cache values for the RPC client methods.
type cache struct {
calculateValidUntilBlock calculateValidUntilBlockCache
nativeHashes map[string]util.Uint160
}
// calculateValidUntilBlockCache stores cached number of validators and
// cache expiration value in blocks
// cache expiration value in blocks.
type calculateValidUntilBlockCache struct {
validatorsCount uint32
expiresAt uint32