Skip to content

Commit

Permalink
attach edition to version
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Jan 1, 2025
1 parent 303fd50 commit 8b3879d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/app/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"github.com/centrifugal/centrifuge"
)

func centrifugeNodeConfig(version string, cfgContainer *config.Container, logHandler centrifuge.LogHandler) centrifuge.Config {
func centrifugeNodeConfig(version string, edition string, cfgContainer *config.Container, logHandler centrifuge.LogHandler) centrifuge.Config {
appCfg := cfgContainer.Config()
cfg := centrifuge.Config{}
cfg.Version = version
cfg.Version = version + " " + strings.ToUpper(edition)
cfg.Metrics = centrifuge.MetricsConfig{
MetricsNamespace: "centrifugo",
}
Expand Down
2 changes: 1 addition & 1 deletion internal/app/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func Run(cmd *cobra.Command, configFile string) {
log.Fatal().Err(err).Msg("error building proxy map")
}

nodeCfg := centrifugeNodeConfig(build.Version, cfgContainer, centrifugeLogHandler)
nodeCfg := centrifugeNodeConfig(build.Version, edition, cfgContainer, centrifugeLogHandler)
node, err := centrifuge.New(nodeCfg)
if err != nil {
log.Fatal().Err(err).Msg("error creating Centrifuge Node")
Expand Down

0 comments on commit 8b3879d

Please sign in to comment.