Skip to content

Commit

Permalink
bisonw-desktop: Show app version for bisonw-desktop.
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-warrior777 committed Nov 26, 2024
1 parent 30ead3c commit e52279f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/cmd/bisonw-desktop/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func mainCore() error {
}()
}

webSrv, err := webserver.New(cfg.Web(clientCore, marketMaker, logMaker.Logger("WEB"), utc))
webSrv, err := webserver.New(cfg.Web(clientCore, marketMaker, logMaker.Logger("WEB"), utc), cfg.AppVersion)
if err != nil {
return fmt.Errorf("failed creating web server: %w", err)
}
Expand Down
2 changes: 2 additions & 0 deletions client/cmd/bisonw-desktop/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ func configure() (*Config, error) {
return nil, err
}

cfg.AppVersion = app.Version

// Resolve unset fields.
return &cfg, app.ResolveConfig(appData, &cfg.Config)
}

0 comments on commit e52279f

Please sign in to comment.