refactor: rename config parameter
This commit is contained in:
parent
6f2271e9f0
commit
d524f8c805
|
@ -303,12 +303,12 @@ fields(producer_kafka_opts) ->
|
|||
desc => ?DESC(query_mode)
|
||||
}
|
||||
)},
|
||||
{query_mode_sync_timeout,
|
||||
{sync_query_timeout,
|
||||
mk(
|
||||
emqx_schema:duration_ms(),
|
||||
#{
|
||||
default => <<"5s">>,
|
||||
desc => ?DESC(query_mode_sync_timeout)
|
||||
desc => ?DESC(sync_query_timeout)
|
||||
}
|
||||
)}
|
||||
];
|
||||
|
|
|
@ -50,7 +50,7 @@ on_start(InstId, Config) ->
|
|||
kafka := KafkaConfig = #{
|
||||
message := MessageTemplate,
|
||||
topic := KafkaTopic,
|
||||
query_mode_sync_timeout := QueryModeSyncTimeout
|
||||
sync_query_timeout := SyncQueryTimeout
|
||||
},
|
||||
metadata_request_timeout := MetaReqTimeout,
|
||||
min_metadata_refresh_interval := MinMetaRefreshInterval,
|
||||
|
@ -108,7 +108,7 @@ on_start(InstId, Config) ->
|
|||
kafka_topic => KafkaTopic,
|
||||
producers => Producers,
|
||||
resource_id => ResourceId,
|
||||
query_mode_sync_timeout => QueryModeSyncTimeout
|
||||
sync_query_timeout => SyncQueryTimeout
|
||||
}};
|
||||
{error, Reason2} ->
|
||||
?SLOG(error, #{
|
||||
|
@ -201,7 +201,7 @@ on_query(
|
|||
#{
|
||||
message_template := Template,
|
||||
producers := Producers,
|
||||
query_mode_sync_timeout := SyncTimeout
|
||||
sync_query_timeout := SyncTimeout
|
||||
}
|
||||
) ->
|
||||
?tp(emqx_bridge_kafka_impl_producer_sync_query, #{}),
|
||||
|
|
|
@ -166,7 +166,7 @@ consumer_offset_reset_policy.label:
|
|||
|
||||
partition_count_refresh_interval.desc:
|
||||
"""The time interval for Kafka producer to discover increased number of partitions.
|
||||
After the number of partitions is increased in Kafka, EMQX will start taking the
|
||||
After the number of partitions is increased in Kafka, EMQX will start taking the
|
||||
discovered partitions into account when dispatching messages per <code>partition_strategy</code>."""
|
||||
|
||||
partition_count_refresh_interval.label:
|
||||
|
@ -364,10 +364,10 @@ query_mode.desc:
|
|||
query_mode.label:
|
||||
"""Query mode"""
|
||||
|
||||
query_mode_sync_timeout.desc:
|
||||
sync_query_timeout.desc:
|
||||
"""This parameter defines the timeout limit for synchronous queries. It applies only when the bridge query mode is configured to 'sync'."""
|
||||
|
||||
query_mode_sync_timeout.label:
|
||||
sync_query_timeout.label:
|
||||
"""Synchronous Query Timeout"""
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue