From 9bdc231a5593546de4b80367824b7d7ecebb8381 Mon Sep 17 00:00:00 2001
From: pantianying <601666418@qq.com>
Date: Mon, 6 Jan 2020 17:24:00 +0800
Subject: [PATCH] fix bug

---
 config/reference_config.go | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/config/reference_config.go b/config/reference_config.go
index 157aaf18e..4896c6db1 100644
--- a/config/reference_config.go
+++ b/config/reference_config.go
@@ -55,7 +55,7 @@ type ReferenceConfig struct {
 	Group          string            `yaml:"group"  json:"group,omitempty" property:"group"`
 	Version        string            `yaml:"version"  json:"version,omitempty" property:"version"`
 	Methods        []*MethodConfig   `yaml:"methods"  json:"methods,omitempty" property:"methods"`
-	async          bool              `yaml:"async"  json:"async,omitempty" property:"async"`
+	Async          bool              `yaml:"async"  json:"async,omitempty" property:"async"`
 	Params         map[string]string `yaml:"params"  json:"params,omitempty" property:"params"`
 	invoker        protocol.Invoker
 	urls           []*common.URL
@@ -174,7 +174,8 @@ func (refconfig *ReferenceConfig) getUrlMap() url.Values {
 		urlMap.Set(constant.TIMEOUT_KEY, refconfig.RequestTimeout)
 	}
 	//getty invoke async or sync
-	urlMap.Set(constant.ASYNC_KEY, strconv.FormatBool(refconfig.async))
+	urlMap.Set(constant.ASYNC_KEY, strconv.FormatBool(refconfig.Async))
+	urlMap.Set(constant.STICKY_KEY, strconv.FormatBool(refconfig.Sticky))
 
 	//application info
 	urlMap.Set(constant.APPLICATION_KEY, consumerConfig.ApplicationConfig.Name)
-- 
GitLab