Skip to content

Commit

Permalink
Remove noop open/close
Browse files Browse the repository at this point in the history
  • Loading branch information
efixler committed Aug 8, 2024
1 parent 1a12247 commit 0311158
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions fetch/trafilatura/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
package trafilatura

import (
"context"
"errors"
"log/slog"
"mime"
Expand Down Expand Up @@ -41,10 +40,6 @@ func New(client fetch.Client) (*TrafilaturaFetcher, error) {
return fetcher, nil
}

func (f *TrafilaturaFetcher) Open(ctx context.Context) error {
return nil
}

// Fetch a URL and return a WebPage resource.
// The web page will be fetched and parsed using the Trafilatura library.
// The returned resource will contain the metadata and content text.
Expand Down Expand Up @@ -138,7 +133,3 @@ func (f *TrafilaturaFetcher) applyExtractResult(
r.PageType = tr.Metadata.PageType
r.FetchMethod = f.client.Identifier()
}

func (f *TrafilaturaFetcher) Close() error {
return nil
}
2 changes: 1 addition & 1 deletion internal/server/version/version.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package version

const (
Commit = "eeecea9"
Commit = "1a12247"
Tag = "v0.8.6"
RepoURL = "https://github.com/efixler/scrape"
)

0 comments on commit 0311158

Please sign in to comment.