From 080fbf9e4a742403b11cacadb631fdb474530a2b Mon Sep 17 00:00:00 2001 From: 554325746@qq.com <554325746@qq.com> Date: 星期三, 25 十二月 2019 09:13:32 +0800 Subject: [PATCH] a --- config.go | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/config.go b/config.go index 722fc62..e0d02c8 100644 --- a/config.go +++ b/config.go @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package main +package syncdb import ( "fmt" @@ -118,6 +118,11 @@ if c.Mode == ModeCluster && c.RetryMaxAttempts <= 0 { c.RetryMaxAttempts = retryMaxAttempts } + + serfConf.QueryResponseSizeLimit = c.QueryResponseSizeLimit + serfConf.QuerySizeLimit = c.QuerySizeLimit + serfConf.UserEventSizeLimit = c.UserEventSizeLimit + return serfConf, nil } -- Gitblit v1.8.0