Skip to content

Commit

Permalink
fix: grpc config name (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
sysulq committed Oct 28, 2022
1 parent 5258874 commit 4a0a786
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/client/grpc/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func StdConfig(name string) *Config {
// RawConfig ...
func RawConfig(key string) *Config {
var config = DefaultConfig()
config.Name = key
if err := conf.UnmarshalKey(key, &config); err != nil {
config.logger.Panic("client grpc parse config panic", xlog.FieldErrKind(ecode.ErrKindUnmarshalConfigErr), xlog.FieldErr(err), xlog.FieldKey(key), xlog.FieldValueAny(config))
}
Expand Down

0 comments on commit 4a0a786

Please sign in to comment.