We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package com.alibaba.nacos.naming.misc;
import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component;
/**
Stores some configurations for Distro protocol
@author nkorange
@SInCE 1.0.0 */ @component public class GlobalConfig {
@value("${nacos.naming.distro.taskDispatchPeriod:200}") private int taskDispatchPeriod = 2000;
@value("${nacos.naming.distro.batchSyncKeyCount:1000}") private int batchSyncKeyCount = 1000;
@value("${nacos.naming.distro.syncRetryDelay:5000}") private long syncRetryDelay = 5000L;
为什么 taskDispatchPeriod = 2000; 跟@value("${nacos.naming.distro.taskDispatchPeriod:200}") 默认值不一样,而下面几个参数却都是相同的?
The text was updated successfully, but these errors were encountered:
写错了,默认值是 2000,已提交 PR
Sorry, something went wrong.
No branches or pull requests
package com.alibaba.nacos.naming.misc;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
/**
Stores some configurations for Distro protocol
@author nkorange
@SInCE 1.0.0
*/
@component
public class GlobalConfig {
@value("${nacos.naming.distro.taskDispatchPeriod:200}")
private int taskDispatchPeriod = 2000;
@value("${nacos.naming.distro.batchSyncKeyCount:1000}")
private int batchSyncKeyCount = 1000;
@value("${nacos.naming.distro.syncRetryDelay:5000}")
private long syncRetryDelay = 5000L;
为什么 taskDispatchPeriod = 2000; 跟@value("${nacos.naming.distro.taskDispatchPeriod:200}") 默认值不一样,而下面几个参数却都是相同的?
The text was updated successfully, but these errors were encountered: