Skip to content
New issue

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

com.alibaba.nacos.naming.misc.GlobalConfig taskDispatchPeriod 参数初始值疑问 #2370

Closed
sortaxie opened this issue Feb 18, 2020 · 1 comment
Milestone

Comments

@sortaxie
Copy link

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}") 默认值不一样,而下面几个参数却都是相同的?

@yuanzhixiang
Copy link

yuanzhixiang commented Feb 21, 2020

写错了,默认值是 2000,已提交 PR

@nkorange nkorange added this to the 1.2.0 milestone Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants