Works now, Mutex whatever
This commit is contained in:
17
main.go
17
main.go
@@ -37,19 +37,6 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
//var latestTimeStamp int64 = 0
|
||||
//var latestUrl string
|
||||
//for _, m := range db.Mangas {
|
||||
// if latestTimeStamp < m.LatestChapter.TimeStampUnix {
|
||||
// latestTimeStamp = m.LatestChapter.TimeStampUnix
|
||||
// latestUrl = m.LatestChapter.Url
|
||||
// }
|
||||
//}
|
||||
//
|
||||
//if latestUrl == "" {
|
||||
// latestUrl = "/title/80381-i-stan-the-prince/1539086-ch_16"
|
||||
//}
|
||||
|
||||
server := Server{
|
||||
ImageBuffers: make(map[string]*bytes.Buffer),
|
||||
NextReady: make(chan bool),
|
||||
@@ -68,10 +55,6 @@ func main() {
|
||||
}
|
||||
}()
|
||||
|
||||
//server.LoadCurr()
|
||||
//go server.LoadPrev()
|
||||
//go server.LoadNext()
|
||||
|
||||
http.HandleFunc("/", server.HandleMenu)
|
||||
http.HandleFunc("/new/title/{title}/{chapter}", server.HandleNew)
|
||||
http.HandleFunc("/current/", server.HandleCurrent)
|
||||
|
||||
Reference in New Issue
Block a user