Skip to content

Commit

Permalink
adjust pkg
Browse files Browse the repository at this point in the history
Signed-off-by: disksing <[email protected]>
  • Loading branch information
disksing committed Sep 30, 2022
1 parent 1565bf5 commit 38802fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions api/cron/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import (
"fmt"
"net/http"

"github.com/disksing/twiyou"
"github.com/disksing/twiyou/scraper"
)

// Vercel cron job entry point.

func Handle(w http.ResponseWriter, r *http.Request) {
scraper, err := twiyou.NewScraper()
scraper, err := scraper.NewScraper()
if err != nil {
fmt.Fprintf(w, "failed to create scraper: %v", err)
return
Expand Down
4 changes: 2 additions & 2 deletions cmd/twiyou/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package main
import (
"log"

"github.com/disksing/twiyou"
"github.com/disksing/twiyou/scraper"
)

func main() {
scraper, err := twiyou.NewScraper()
scraper, err := scraper.NewScraper()
if err != nil {
log.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion scraper.go → scraper/scraper.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package twiyou
package scraper

import (
"database/sql"
Expand Down

1 comment on commit 38802fa

@vercel
Copy link

@vercel vercel bot commented on 38802fa Sep 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

twiyou – ./

twiyou-git-master-disksing.vercel.app
twiyou.vercel.app
twiyou-disksing.vercel.app

Please sign in to comment.