mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 00:33:14 +00:00
remove prints
This commit is contained in:
parent
9d5d8f4df2
commit
d9437d46e4
@ -9,7 +9,6 @@ import (
|
||||
"os"
|
||||
"log"
|
||||
"io"
|
||||
"fmt"
|
||||
"mime"
|
||||
"strings"
|
||||
"path/filepath"
|
||||
@ -54,7 +53,6 @@ type NewFolder struct {
|
||||
func FolderListHandler(rw http.ResponseWriter, req *http.Request) {
|
||||
if req.Method == "GET" {
|
||||
list := db(req).ListFolders()
|
||||
fmt.Println(list)
|
||||
json.NewEncoder(rw).Encode(list)
|
||||
} else if req.Method == "POST" {
|
||||
var body NewFolder
|
||||
|
@ -7,7 +7,6 @@ import (
|
||||
"net/http"
|
||||
"github.com/nkanaev/yarr/storage"
|
||||
"log"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type Route struct {
|
||||
@ -26,16 +25,13 @@ type Handler struct {
|
||||
|
||||
func (h *Handler) startJobs() {
|
||||
go func() {
|
||||
fmt.Println("one")
|
||||
for {
|
||||
feed := <-h.feedQueue
|
||||
fmt.Println("got feed", feed)
|
||||
items := listItems(feed)
|
||||
h.db.CreateItems(items)
|
||||
}
|
||||
}()
|
||||
go func() {
|
||||
fmt.Println("two")
|
||||
for {
|
||||
val := <-h.counter
|
||||
h.queueSize += val
|
||||
@ -51,7 +47,6 @@ func (h *Handler) fetchFeed(feed storage.Feed) {
|
||||
|
||||
func (h *Handler) fetchAllFeeds() {
|
||||
for _, feed := range h.db.ListFeeds() {
|
||||
fmt.Println("here", feed)
|
||||
h.fetchFeed(feed)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user