Skip to content

Commit

Permalink
update sample config
Browse files Browse the repository at this point in the history
Former-commit-id: b125957
  • Loading branch information
cityiron committed Nov 13, 2020
1 parent cb8af3a commit db3a20c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/client/dubbo/dubbo.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (dc *Client) Call(req *client.Request) (resp client.Response, err error) {
// MappingParams param mapping to api.
func (dc *Client) MappingParams(req *client.Request) ([]string, []interface{}, error) {
r := req.API.Method.IntegrationRequest
values := []interface{}{}
var values []interface{}
for _, mappingParam := range r.MappingParams {
source, _, err := client.ParseMapSource(mappingParam.Name)
if err != nil {
Expand Down
3 changes: 2 additions & 1 deletion sample/dubbogo/proxy/api_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ resources:
requestType: dubbo
mappingParams:
- name: queryStrings.name
mapTo: 1
mapTo: 0
applicationName: "UserProvider"
interface: "com.ic.user.UserProvider"
method: "GetUserByName"
paramTypes: [ "java.lang.String" ]
group: "test"
version: 1.0.0
clusterName: "test_dubbo"
Expand Down

0 comments on commit db3a20c

Please sign in to comment.