Skip to content

Commit 5f527b5

Browse files
authored
Extract feedfinder (#154)
* refactor: extract feedfinder to a standalone package * fix: increase timeout for feed validation to improve reliability
1 parent b83b868 commit 5f527b5

File tree

13 files changed

+8
-747
lines changed

13 files changed

+8
-747
lines changed

frontend/src/lib/api/feed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export type FeedRequestOptions = {
3030
export async function checkValidity(link: string, options: FeedRequestOptions) {
3131
const resp = await api
3232
.post('feeds/validation', {
33-
timeout: 10000,
33+
timeout: 30000,
3434
json: { link: link, request_options: options }
3535
})
3636
.json<{ feed_links: { title: string; link: string }[] }>();

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/0x2e/fusion
33
go 1.24
44

55
require (
6-
github.com/PuerkitoBio/goquery v1.10.3
6+
github.com/0x2E/feedfinder v0.0.3
77
github.com/caarlos0/env/v11 v11.3.1
88
github.com/glebarez/sqlite v1.11.0
99
github.com/go-playground/locales v0.14.1
@@ -21,6 +21,7 @@ require (
2121
)
2222

2323
require (
24+
github.com/PuerkitoBio/goquery v1.10.3 // indirect
2425
github.com/andybalholm/cascadia v1.3.3 // indirect
2526
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
2627
github.com/dustin/go-humanize v1.0.1 // indirect

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
github.com/0x2E/feedfinder v0.0.3 h1:B5jXpsQPelV+YcCigqAm7AXlFYml3X8A+5ug8FJ02/4=
2+
github.com/0x2E/feedfinder v0.0.3/go.mod h1:/+tl3hTDZetFvRLsphmRqn3081E8nVtGhp28mUOZtOk=
13
github.com/PuerkitoBio/goquery v1.10.3 h1:pFYcNSqHxBD06Fpj/KsbStFRsgRATgnf3LeXiUkhzPo=
24
github.com/PuerkitoBio/goquery v1.10.3/go.mod h1:tMUX0zDMHXYlAQk6p35XxQMqMweEKB7iK7iLNd4RH4Y=
35
github.com/andybalholm/cascadia v1.3.3 h1:AG2YHrzJIm4BZ19iwJ/DAua6Btl3IwJX+VI4kktS1LM=

pkg/feedfinder/finder.go

Lines changed: 0 additions & 132 deletions
This file was deleted.

pkg/feedfinder/finder_test.go

Lines changed: 0 additions & 27 deletions
This file was deleted.

pkg/feedfinder/page.go

Lines changed: 0 additions & 107 deletions
This file was deleted.

pkg/feedfinder/page_test.go

Lines changed: 0 additions & 70 deletions
This file was deleted.

pkg/feedfinder/request.go

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)