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

修改配置 热更新 时间配置的时候没有转化为纳秒,程序启动有转化为纳秒(其实不需要转化为纳秒,配置文件直接配置为 14s类似这样) #11

Open
cwl168 opened this issue Dec 4, 2020 · 0 comments

Comments

@cwl168
Copy link

cwl168 commented Dec 4, 2020

程序启动:

global.AppSetting.DefaultContextTimeout *= time.Second
global.JWTSetting.Expire *= time.Second
global.ServerSetting.ReadTimeout *= time.Second
global.ServerSetting.WriteTimeout *= time.Second

热更新:

func (s *Setting) ReloadAllSection() error {
	for k, v := range sections {
		err := s.ReadSection(k, v)
		if err != nil {
			return err
		}
	}

	return nil
}
@cwl168 cwl168 changed the title 修改配置 热更新 时间配置的时候没有转化为纳秒,程序启动有转化为纳秒 修改配置 热更新 时间配置的时候没有转化为纳秒,程序启动有转化为纳秒(其实不需要转化为纳秒,配置文件直接配置为 14s类似这样) Mar 16, 2021
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

1 participant