Rename old app references

This commit is contained in:
Sergey Stepanov 2021-07-30 13:30:15 +03:00
parent 95f65b2b72
commit 03fb03a71a
No known key found for this signature in database
GPG key ID: A56B4929BAA8556B
5 changed files with 78 additions and 78 deletions

View file

@ -33,8 +33,8 @@ func main() {
glog.Infof("[coordinator] version: %v", Version)
glog.Infof("Initializing coordinator server")
glog.V(4).Infof("Coordinator configs %v", conf)
o := coordinator.New(ctx, conf)
if err := o.Run(); err != nil {
app := coordinator.New(ctx, conf)
if err := app.Run(); err != nil {
glog.Errorf("Failed to run coordinator server, reason %v", err)
os.Exit(1)
}
@ -51,6 +51,6 @@ func main() {
}()
<-done
o.Shutdown()
app.Shutdown()
cancelCtx()
}

View file

@ -36,8 +36,8 @@ func run() {
glog.Infof("[worker] version: %v", Version)
glog.V(4).Info("[worker] Initialization")
glog.V(4).Infof("[worker] Local configuration %+v", conf)
wrk := worker.New(ctx, conf)
wrk.Run()
app := worker.New(ctx, conf)
app.Run()
signals := make(chan os.Signal, 1)
done := make(chan struct{}, 1)
@ -51,7 +51,7 @@ func run() {
}()
<-done
wrk.Shutdown()
app.Shutdown()
cancelCtx()
}