Skip to content

Commit

Permalink
refactor: Expose ConfigVersion so services can use if needed (#204)
Browse files Browse the repository at this point in the history
closes #203

Signed-off-by: lenny <[email protected]>
  • Loading branch information
lenny-goodell authored Apr 6, 2021
1 parent 615e600 commit e966ad5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bootstrap/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import (

const (
writableKey = "/Writable"
configVersion = "2.0"
ConfigVersion = "2.0"
)

// UpdatedStream defines the stream type that is notified by ListenForChanges when a configuration update is received.
Expand Down Expand Up @@ -316,7 +316,7 @@ func (cp *Processor) createProviderClient(
accessTokenFile string,
providerConfig types.ServiceConfig) (configuration.Client, error) {

providerConfig.BasePath = filepath.Join(configStem, configVersion, serviceKey)
providerConfig.BasePath = filepath.Join(configStem, ConfigVersion, serviceKey)
providerConfig.AccessToken = accessTokenFile

cp.Logger.Info(fmt.Sprintf(
Expand Down

0 comments on commit e966ad5

Please sign in to comment.