调整测试代码

This commit is contained in:
Yun
2025-07-24 17:21:11 +08:00
parent 037d8cf107
commit 2a7092ab0a
3 changed files with 24 additions and 18 deletions
-8
View File
@@ -7,7 +7,6 @@ import (
)
type Options struct {
priority int // 优先级,数字越大越优先
updateInterval time.Duration // 更新间隔
expireTime time.Duration
logger logger.Logger
@@ -15,7 +14,6 @@ type Options struct {
func defaultOptions() Options {
return Options{
priority: 0, // 默认优先级
updateInterval: time.Second * 10,
expireTime: time.Second * 32,
logger: logger.NewLogger(),
@@ -32,12 +30,6 @@ func newOptions(opts ...Option) Options {
return o
}
func SetPriority(priority int) Option {
return func(o *Options) {
o.priority = priority
}
}
func SetLogger(log logger.Logger) Option {
return func(o *Options) {
o.logger = log