Richard Patel faad19f121
more stuff
2018-10-28 03:41:16 +01:00

26 lines
354 B
Go

package main
import (
"context"
"net/url"
)
func main() {
prepareConfig()
readConfig()
c := context.Background()
remotes := make(chan *RemoteDir)
go Schedule(c, remotes)
u, _ := url.Parse("http://mine.terorie.com:420/")
remote := NewRemoteDir(*u)
globalWait.Add(1)
remotes <- remote
// Wait for all jobs to finish
globalWait.Wait()
}