Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Dec 28, 2023
1 parent c8e154e commit e65ac66
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion cmd/haoadm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
)

func main() {
config.App = &config.Configuration{}

appm := &cli.App{
Name: "haoadm",
Expand Down
1 change: 0 additions & 1 deletion cmd/haobase/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
)

func main() {
config.App = &config.Configuration{}
appm := &cli.App{
Name: "haobase",
UsageText: "Issues: https://github.com/yzimhao/trading_engine/issues",
Expand Down
1 change: 0 additions & 1 deletion cmd/haomatch/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
)

func main() {
config.App = &config.Configuration{}
appm := &cli.App{
Name: "haomatch",
UsageText: "Issues: https://github.com/yzimhao/trading_engine/issues",
Expand Down
1 change: 0 additions & 1 deletion cmd/haoquote/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
)

func main() {
config.App = &config.Configuration{}
appm := &cli.App{
Name: "haoquote",
UsageText: "Issues: https://github.com/yzimhao/trading_engine/issues",
Expand Down
4 changes: 4 additions & 0 deletions config/app_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ var (
App *Configuration
)

func init() {
App = &Configuration{}
}

type ModeType string

const (
Expand Down

0 comments on commit e65ac66

Please sign in to comment.