-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
What happened?
在DouTok/applications/publish/rpc/user.go文件中的第19行,
func InitUserRpc() {
config := dtviper.ConfigInit("DOUTOK_USER", "user")
c, err := userservice.NewClient(
config.Viper.GetString("Server.Name"),
initHelper.InitRPCClientArgs(*config)...,😊😊这里的config多解引用了一次,
)
if err != nil {
panic(err)
}
userClient = c
}How to reproduce?
dtviper.ConfigInit 返回*dtviper.Config类型,所以不用再解引用了
Expected
Screenshots
Environment
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels