mirror of
https://github.com/tuna/tunasync.git
synced 2025-04-20 20:22:46 +00:00
Fix typo: registor -> register
This commit is contained in:
parent
c8600d094e
commit
b4b81ef7e9
@ -61,7 +61,7 @@ func NewTUNASyncWorker(cfg *Config) *Worker {
|
|||||||
|
|
||||||
// Run runs worker forever
|
// Run runs worker forever
|
||||||
func (w *Worker) Run() {
|
func (w *Worker) Run() {
|
||||||
w.registorWorker()
|
w.registerWorker()
|
||||||
go w.runHTTPServer()
|
go w.runHTTPServer()
|
||||||
w.runSchedule()
|
w.runSchedule()
|
||||||
}
|
}
|
||||||
@ -393,7 +393,7 @@ func (w *Worker) URL() string {
|
|||||||
return fmt.Sprintf("%s://%s:%d/", proto, w.cfg.Server.Hostname, w.cfg.Server.Port)
|
return fmt.Sprintf("%s://%s:%d/", proto, w.cfg.Server.Hostname, w.cfg.Server.Port)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *Worker) registorWorker() {
|
func (w *Worker) registerWorker() {
|
||||||
msg := WorkerStatus{
|
msg := WorkerStatus{
|
||||||
ID: w.Name(),
|
ID: w.Name(),
|
||||||
URL: w.URL(),
|
URL: w.URL(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user