links validator
All checks were successful
/ Make image (push) Successful in 37s

This commit is contained in:
nquidox 2026-04-06 17:05:00 +03:00
parent af1710c3fe
commit c5013c03ff
2 changed files with 14 additions and 0 deletions

View file

@ -112,6 +112,10 @@ func (s *service) SendResults(ctx context.Context, chanLen uint) error {
func (s *service) sendTasks(tasks []structs.Task) error {
for _, tsk := range tasks {
for origin, link := range tsk.Origins {
if !linkIsValid(link) {
continue
}
if origin == "surugaya" {
pushTask(s.taskPublishers["surugaya"], tsk.MerchUuid, link)
}