Skip to content

Commit

Permalink
Merge pull request apache#52 from cityiron/sample-proxy-config
Browse files Browse the repository at this point in the history
update sample config

Former-commit-id: ea6cec8
  • Loading branch information
cityiron committed Nov 14, 2020
2 parents cb8af3a + db3a20c commit c14798c
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 c14798c

Please sign in to comment.