tunasync/tests/workerMain.go
2016-04-30 16:43:06 +08:00

20 lines
250 B
Go

// +build ignore
package main
import (
"fmt"
"github.com/tuna/tunasync/worker"
)
func main() {
cfg, err := worker.LoadConfig("worker.conf")
if err != nil {
fmt.Println(err.Error())
return
}
m := worker.GetTUNASyncWorker(cfg)
m.Run()
}