Skip to content

Commit

Permalink
feat: change to v2.1.0 (#1535)
Browse files Browse the repository at this point in the history
* change to v2.0.5

* fix go lint
  • Loading branch information
longXboy authored Oct 8, 2021
1 parent 056812e commit d0c65fb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions contrib/config/apollo/apollo.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ type apollo struct {
client *agollo.Client
}

// Option is apollo option
type Option func(*options)

type options struct {
Expand All @@ -20,7 +21,7 @@ type options struct {
endpoint string
namespace string
isBackupConfig bool
backupPath string
backupPath string
}

// WithAppID with apollo config app id
Expand Down Expand Up @@ -72,7 +73,6 @@ func WithNamespace(name string) Option {
}
}


// WithBackupPath with apollo config backupPath
func WithBackupPath(backupPath string) Option {
return func(o *options) {
Expand All @@ -87,12 +87,12 @@ func NewSource(opts ...Option) config.Source {
}
client, err := agollo.StartWithConfig(func() (*apolloConfig.AppConfig, error) {
return &apolloConfig.AppConfig{
AppID: op.appid,
Cluster: op.cluster,
NamespaceName: op.namespace,
IP: op.endpoint,
IsBackupConfig: op.isBackupConfig,
Secret: op.secret,
AppID: op.appid,
Cluster: op.cluster,
NamespaceName: op.namespace,
IP: op.endpoint,
IsBackupConfig: op.isBackupConfig,
Secret: op.secret,
BackupConfigPath: op.backupPath,
}, nil
})
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package kratos

// Release is the current kratos version.
const Release = "v2.0.5"
const Release = "v2.1.0"

0 comments on commit d0c65fb

Please sign in to comment.