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

fix: utils.Options usage #5

Closed
wants to merge 16 commits into from
Closed

fix: utils.Options usage #5

wants to merge 16 commits into from

Conversation

Ricky-chen1
Copy link
Collaborator

the following changes:

  1. fix utils.Options usage,You don’t have to pass it in when you don’t need it.
  2. update README.md and README_CN.md
  3. fix monitor_test,such as TestProgress() failed

@li-jin-gou li-jin-gou self-assigned this Jan 24, 2024
@li-jin-gou
Copy link
Contributor

  • rebase 一下代码上周的修改记录还在里面,,每次 feature 不要用 main 分支,可以看下分支规范

@@ -54,7 +53,7 @@ type configMonitor struct {
}

// NewConfigMonitor init a monitor for the config file
func NewConfigMonitor(key string, watcher filewatcher.FileWatcher) (ConfigMonitor, error) {
func NewConfigMonitor(key string, watcher filewatcher.FileWatcher, opt *utils.Option) (ConfigMonitor, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这不是可选参数

panic(err)
}

func NewSuite(key string, watcher filewatcher.FileWatcher, opts ...utils.Options) *FileConfigServerSuite {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可选参数

@Ricky-chen1 Ricky-chen1 closed this Feb 8, 2024
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

Successfully merging this pull request may close these issues.

2 participants