From a51f53f2a7d84f6a6450759a57ec2da4ab074772 Mon Sep 17 00:00:00 2001 From: zaki Date: Fri, 10 May 2024 00:32:01 +0800 Subject: [PATCH] fix: update something --- .../eventmesh/connector/http/sink/config/HttpRetryConfig.java | 4 ++-- .../src/main/resources/sink-config.yml | 1 - .../src/test/resources/sink-config.yml | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/eventmesh-connectors/eventmesh-connector-http/src/main/java/org/apache/eventmesh/connector/http/sink/config/HttpRetryConfig.java b/eventmesh-connectors/eventmesh-connector-http/src/main/java/org/apache/eventmesh/connector/http/sink/config/HttpRetryConfig.java index cf6d5adcb7..0bceac7d47 100644 --- a/eventmesh-connectors/eventmesh-connector-http/src/main/java/org/apache/eventmesh/connector/http/sink/config/HttpRetryConfig.java +++ b/eventmesh-connectors/eventmesh-connector-http/src/main/java/org/apache/eventmesh/connector/http/sink/config/HttpRetryConfig.java @@ -21,8 +21,8 @@ @Data public class HttpRetryConfig { - // maximum number of retries, default 3, minimum 0 - private int maxRetries = 3; + // maximum number of retries, default 2, minimum 0 + private int maxRetries = 2; // retry interval, default 2000ms private int interval = 2000; diff --git a/eventmesh-connectors/eventmesh-connector-http/src/main/resources/sink-config.yml b/eventmesh-connectors/eventmesh-connector-http/src/main/resources/sink-config.yml index f740cf7cd1..5103525456 100644 --- a/eventmesh-connectors/eventmesh-connector-http/src/main/resources/sink-config.yml +++ b/eventmesh-connectors/eventmesh-connector-http/src/main/resources/sink-config.yml @@ -28,7 +28,6 @@ connectorConfig: connectorName: httpSink urls: - http://127.0.0.1:8987/test - ssl: false keepAlive: true keepAliveTimeout: 60000 idleTimeout: 5000 # timeunit: ms, recommended scope: common(5s - 10s), webhook(15s - 60s) diff --git a/eventmesh-connectors/eventmesh-connector-http/src/test/resources/sink-config.yml b/eventmesh-connectors/eventmesh-connector-http/src/test/resources/sink-config.yml index 149ad7681b..3ea4238790 100644 --- a/eventmesh-connectors/eventmesh-connector-http/src/test/resources/sink-config.yml +++ b/eventmesh-connectors/eventmesh-connector-http/src/test/resources/sink-config.yml @@ -28,7 +28,6 @@ connectorConfig: connectorName: httpSink urls: - http://127.0.0.1:8987/test - ssl: false keepAlive: true keepAliveTimeout: 60000 idleTimeout: 15000 # timeunit: ms, recommended scope: common(5s - 10s), webhook(15s - 60s)