cache/cache.go
Function StoreMetadata
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func StoreMetadata(ctx context.Context, domainID string, method string, url url.URL, meta []string, expiration time.Duration) (bool, error) {
Method Object.RetrieveFullPage
has 6 return statements (exceeds 4 allowed). Open
Open
func (c *Object) RetrieveFullPage() error {
obj := &URIObj{}
meta, err := FetchMetadata(c.DomainID, c.CurrentURIObject.Method, c.CurrentURIObject.URL)
if err != nil {
Method Object.StoreFullPage
has 6 return statements (exceeds 4 allowed). Open
Open
func (c Object) StoreFullPage(ctx context.Context, expiration time.Duration) (bool, error) {
if !c.IsStatusAllowed() || !c.IsMethodAllowed() || expiration < 1 {
logger.GetGlobal().WithFields(log.Fields{
"ReqID": c.ReqID,
}).Debugf(