use dummy limiter for testing pages

This commit is contained in:
Egor Aristov 2025-03-12 10:05:38 +03:00
parent 2c87df4a87
commit 94b347e49f
Signed by: egor3f
GPG Key ID: 40482A264AAEC85F
2 changed files with 15 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import (
dummycookies "github.com/egor3f/rssalchemy/internal/cookiemgr/dummy"
"github.com/egor3f/rssalchemy/internal/dateparser"
"github.com/egor3f/rssalchemy/internal/extractors/pwextractor"
"github.com/egor3f/rssalchemy/internal/limiter/dummy"
"github.com/egor3f/rssalchemy/internal/models"
"github.com/labstack/gommon/log"
"io"
@ -65,6 +66,7 @@ func main() {
},
},
CookieManager: dummycookies.New(),
Limiter: &dummy.Limiter{},
})
if err != nil {
log.Panicf("create pw extractor: %v", err)

View File

@ -0,0 +1,13 @@
package dummy
import (
"context"
"time"
)
type Limiter struct {
}
func (l *Limiter) Limit(context.Context, string) (time.Duration, error) {
return 0, nil
}