mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 02:34:42 +00:00
Rename old app references
This commit is contained in:
parent
95f65b2b72
commit
03fb03a71a
5 changed files with 78 additions and 78 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue