tools/abigen/internal/etherscan/ratelimiter.go
Method fileRateLimiter.releaseLock
has 6 return statements (exceeds 4 allowed). Open
Open
func (f *fileRateLimiter) releaseLock() (ok bool, err error) {
f.mux.Unlock()
err = f.openFile()
if err != nil {
Method fileRateLimiter.obtainLock
has 5 return statements (exceeds 4 allowed). Open
Open
func (f *fileRateLimiter) obtainLock(ctx context.Context) (ok bool, err error) {
f.mux.Lock()
err = f.openFile()
if err != nil {
return false, fmt.Errorf("could not open file: %w", err)